Add compact mobile header with hamburger menu and slide-in drawer (#218) - #267
Merged
arisu6804 merged 1 commit intoJul 24, 2026
Merged
Conversation
Contributor
|
Clean diff — LGTM! 💯 |
Contributor
|
Clean — merged. 🎉 |
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
Adds a compact mobile header that replaces the full desktop navigation with a hamburger-triggered slide-in drawer on viewports ≤720px.
Changes
src/components/Navbar.jsxaria-expandedandaria-labelfor accessibility<aside>witharia-label="Mobile navigation") containing navigation links with icons,LocaleSelect, andWalletButtonoverflow: hidden) while the drawer is opensrc/components/Navbar.css.navbar-hamburger— 44×44px touch target,display: noneon desktop, shown as a flex column at ≤720px.navbar-backdrop— fixed full-screen semi-transparent overlay (z-index 90).navbar-drawer— 280px fixed panel sliding in from the right (z-index 100, CSS transition).navbar-drawer--open— transforms totranslateX(0).navbar-drawer-link— 44px min-height touch target with icon and label.navbar-drawer-actions— bordered section at bottom for locale/wallet.navbar-linksand.navbar-actionsat ≤720px via media querysrc/responsive.css.navbar { flex-wrap: wrap }rule since nav links and actions are now hidden on mobiletest/components/Navbar.test.jsx(new)aria-expandedstatetest/touch-targets.test.js.navbar-hamburger(min-width/min-height 44px).navbar-drawer-link(min-height 44px)src/components/Navbar.stories.jsxMemoryRouterdecorator for isolated story renderingCloses #218