Skip to content

fix(docs): dim the page behind the open mobile section nav - #709

Open
kmonsoe wants to merge 1 commit into
mainfrom
fix/docs-mobile-nav-scrim
Open

fix(docs): dim the page behind the open mobile section nav#709
kmonsoe wants to merge 1 commit into
mainfrom
fix/docs-mobile-nav-scrim

Conversation

@kmonsoe

@kmonsoe kmonsoe commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

On mobile the developer portal's section-nav dropdown opened as a panel over undimmed page content — unlike every dialog in the product — and only closed by tapping the toggle again or following a link.

Adds a fixed scrim inside .docs-side, painted under the panel (z-index: 4 against the list/toggle's 5) and only in the mobile breakpoint. It fades in with the panel, takes pointer events only while open, and a tap anywhere on it closes the nav. Dark mode gets a heavier 0.7 wash against the lighter 0.4.

Desktop is untouched: the scrim is display: none alongside .docs-side-toggle outside the breakpoint, where the nav shows inline.

🤖 Generated with Claude Code

https://claude.ai/code/session_011HwhYb3yU3qnGjtFRodQxm

The dropdown floated over undimmed content, unlike every dialog in the
product, and only closed by tapping the toggle or a link. A fixed scrim
under the panel restores the dashboard's dimming contract and closes on
a tap outside.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011HwhYb3yU3qnGjtFRodQxm
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