fix(site): add a mobile menu to the header - #363
Merged
Conversation
Below the md breakpoint the header showed only Docs and Demo. Replace that with a hamburger menu built on a details element: it lists every navigation item, the audience pages under "Who it's for", and the Get started action. It closes when a link inside it is chosen or on Escape, and needs no script to open. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019etDyVHWA4s6RBzoRVsqgJ
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.
Summary
Below the
mdbreakpoint the site header only showed Docs and Demo, so most of the navigation added in #362 was unreachable on a phone.MobileMenu) built on a<details>element, so it opens without any script. The panel lists Product, Who it's for with the five audience pages indented beneath it, Docs, Demo, About, GitHub, and a full-width Get started button.prefers-reduced-motionrule.md(About and Get started atlg, as before). Search and the theme toggle stay visible at every width.Verification
pnpm lint,pnpm typecheck:site,pnpm comments:check, and the site's unit tests pass.🤖 Generated with Claude Code
https://claude.ai/code/session_019etDyVHWA4s6RBzoRVsqgJ
Generated by Claude Code