Repository navigation
feat(topnav): unified card appearance for mega menu - #356
Merged
Merged
Conversation
When a mega menu opens, the nav bar and dropdown panel now appear as one continuous popover card with shared shadow and rounded corners. No divider between the nav bar and the panel content. - Added backdrop element that covers the positioned ancestor - Removed panel border-top and separate shadow - Added onOpenChange callback for wrapper coordination - Updated sandbox demo to hide wrapper shadow when menu is open Co-authored-by: Navi <[email protected]>
rubyycheung
enabled auto-merge
February 26, 2026 05:28
rubyycheung
added this pull request to the merge queue
Feb 26, 2026
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR Modified ComponentsTopNav · View in Storybook
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Component PreviewsIncludes interactive hover previews as animated GIFs. XDSTopNavDefaultScreenshot: Interaction Preview: (view video) View in Storybook · Centered With Start ContentScreenshot: View in Storybook · Center Content Without EndScreenshot: View in Storybook · Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
This was referenced Mar 3, 2026
cixzhang
pushed a commit
that referenced
this pull request
Apr 26, 2026
When a mega menu opens, the nav bar and dropdown panel now appear as one continuous popover card with shared shadow and rounded corners. No divider between the nav bar and the panel content. - Added backdrop element that covers the positioned ancestor - Removed panel border-top and separate shadow - Added onOpenChange callback for wrapper coordination - Updated sandbox demo to hide wrapper shadow when menu is open Co-authored-by: Navi <[email protected]>
cixzhang
pushed a commit
that referenced
this pull request
Jun 21, 2026
When a mega menu opens, the nav bar and dropdown panel now appear as one continuous popover card with shared shadow and rounded corners. No divider between the nav bar and the panel content. - Added backdrop element that covers the positioned ancestor - Removed panel border-top and separate shadow - Added onOpenChange callback for wrapper coordination - Updated sandbox demo to hide wrapper shadow when menu is open Co-authored-by: Navi <[email protected]>
cixzhang
pushed a commit
that referenced
this pull request
Jun 21, 2026
When a mega menu opens, the nav bar and dropdown panel now appear as one continuous popover card with shared shadow and rounded corners. No divider between the nav bar and the panel content. - Added backdrop element that covers the positioned ancestor - Removed panel border-top and separate shadow - Added onOpenChange callback for wrapper coordination - Updated sandbox demo to hide wrapper shadow when menu is open
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
When a mega menu opens, the nav bar and dropdown panel now appear as one continuous popover card — no divider, shared shadow, seamless surface.
Changes
onOpenChangecallback — fires when the menu opens/closes so the wrapper can coordinate (e.g. hide its own shadow)How it works
The
XDSTopNavMegaMenurenders a backdrop<div>that positions itself over the entireposition: relativewrapper. When the menu opens, the backdrop fades in with the card shadow, and the panel slides down seamlessly from the nav bar.Test Plan
npx tsc --noEmit— clean/pages/mega-menu/updated with unified card behaviorCrafted with care by Navi