fix(docs): dim the page behind the open mobile section nav - #709
Open
kmonsoe wants to merge 1 commit into
Open
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: 4against the list/toggle's5) 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: nonealongside.docs-side-toggleoutside the breakpoint, where the nav shows inline.🤖 Generated with Claude Code
https://claude.ai/code/session_011HwhYb3yU3qnGjtFRodQxm