Skip to content

fix: stop the sidebar TOC highlight from getting stuck on click - #39

Open
Ptitlouis6012 wants to merge 1 commit into
TigerTag-Project:mainfrom
Ptitlouis6012:fix/toc-scroll-anchor
Open

Ptitlouis6012 wants to merge 1 commit into
TigerTag-Project:mainfrom
Ptitlouis6012:fix/toc-scroll-anchor

Conversation

@Ptitlouis6012

Copy link
Copy Markdown
Contributor

Our custom scroll-margin-top on h2/h3 stacked with Starlight's own scroll-padding-top on , landing anchor-scroll targets ~168px from the top of the viewport -- below the TOC's IntersectionObserver active band (roughly 96-149px), so clicking a heading in the sidebar never marked it current. Removed the redundant rule; Starlight's own scroll-padding-top already accounts for the sticky header.

Our custom scroll-margin-top on h2/h3 stacked with Starlight's own
scroll-padding-top on <html>, landing anchor-scroll targets ~168px
from the top of the viewport -- below the TOC's IntersectionObserver
active band (roughly 96-149px), so clicking a heading in the sidebar
never marked it current. Removed the redundant rule; Starlight's own
scroll-padding-top already accounts for the sticky header.
@vercel

vercel Bot commented Sep 16, 2026

Copy link
Copy Markdown

@Ptitlouis6012 is attempting to deploy a commit to the Tiger-Project Team on Vercel.

A member of the Team first needs to authorize it.

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