Skip to content

style(sidebar): thicken the active item without widening it - #480

Open
veksen wants to merge 1 commit into
nextfrom
sidebar-active-weight
Open

veksen wants to merge 1 commit into
nextfrom
sidebar-active-weight

Conversation

@veksen

@veksen veksen commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

Requested by JP

Before: the active sidebar item turned bold and its letter-spacing opened up, so it got wider than the same item inactive ("intro" 38px to 48px, "resources" 82px to 99px).

After: the active item still reads thicker, but it is exactly as wide as when inactive.

How: cardItemClass drops font-bold and the tracking change for a 0.6px -webkit-text-stroke in the text colour. A stroke thickens the glyphs without changing their metrics. It covers every list in the sidebar card: the site menu, the resources and the spotlights.

Checked in Chromium at 1440px on astro preview: the measured widths are identical active and inactive. Not checked in Safari or Firefox.

🤖 Generated with Claude Code

The active sidebar item switched to bold and opened its tracking from
-0.75px to 0.75px, so it grew by 10-17px and long names could rewrap.
A 0.6px text stroke in the text colour thickens the glyphs and keeps
their metrics, so the item stays exactly as wide as when inactive.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@veksen veksen self-assigned this Oct 16, 2026
@netlify

netlify Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for tph ready!

Name Link
🔨 Latest commit b646520
🔍 Latest deploy log https://app.netlify.com/projects/tph/deploys/6ad27100a4d05cc7e76e3669
😎 Deploy Preview https://deploy-preview-480--tph.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant