Skip to content

feat: highlight active section in sidebar on scroll#526

Open
jackzheng-cs wants to merge 2 commits intomainfrom
496-starter-kit-sections-not-properly-highlighting
Open

feat: highlight active section in sidebar on scroll#526
jackzheng-cs wants to merge 2 commits intomainfrom
496-starter-kit-sections-not-properly-highlighting

Conversation

@jackzheng-cs
Copy link
Copy Markdown
Contributor

Add scroll-based active section tracking to the StarterKit sidebar. As the user scrolls, the sidebar link corresponding to the current section highlights in black with a bullet point indicator. Implemented using a scroll event listener that checks each section's position relative to the viewport, with a special case to ensure the last section (More Tips) activates when the user reaches the bottom of the page.

@jackzheng-cs jackzheng-cs linked an issue May 5, 2026 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@haylietan haylietan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screen.Recording.2026-05-04.at.7.16.58.PM.mov

The developer resources doesn't highlight when active. Might what to change this whenever you get the chance.

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.

Starter Kit sections not properly highlighting

2 participants