Skip to content

fix: show first sub-item in "On this page" on mobile (#1860)#1872

Open
moaaz-ae wants to merge 1 commit intosveltejs:mainfrom
moaaz-ae:fix/issue-1860
Open

fix: show first sub-item in "On this page" on mobile (#1860)#1872
moaaz-ae wants to merge 1 commit intosveltejs:mainfrom
moaaz-ae:fix/issue-1860

Conversation

@moaaz-ae
Copy link
Copy Markdown
Contributor

The CSS selector li:first-child in OnThisPage.svelte was too broad, incorrectly hiding the first sub-item of every section in the documentation navigation menu on mobile viewports.

Refined the selector to & > ul > li:first-child to specifically target only the top-level page title link.

Fixes #1860

Before

Screenshot From 2026-03-18 06-45-30

After

Screenshot From 2026-03-18 06-45-21

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 18, 2026

@moaaz-ae is attempting to deploy a commit to the Svelte 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.

On this page - first sub item hidden on mobile viewport

1 participant