Skip to content

fix: apply uniform border radius to MegaMenu panel container - #702

Merged
cixzhang merged 1 commit into
mainfrom
navi/fix/mega-menu-radius
Mar 19, 2026
Merged

cixzhang merged 1 commit into
mainfrom
navi/fix/mega-menu-radius

Conversation

@cixzhang

@cixzhang cixzhang commented Mar 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The MegaMenu popover panel previously had different border radii — 0 on the top corners and --radius-3 on the bottom corners. This made the panel look asymmetric.

Changed the panelContainer style to use borderRadius: radiusVars['--radius-3'] uniformly on all corners for a consistent rounded appearance.

Changes

  • packages/core/src/TopNav/XDSTopNavMegaMenu.tsx: Replaced the four individual borderTopLeftRadius: 0, borderTopRightRadius: 0, borderBottomLeftRadius, borderBottomRightRadius declarations with a single borderRadius: radiusVars['--radius-3'].

Testing

All 53 TopNav tests pass (npx vitest run packages/core/src/TopNav/).


@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Mar 18, 2026
@cixzhang
cixzhang marked this pull request as ready for review March 18, 2026 23:26
@github-actions

github-actions Bot commented Mar 18, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

Modified Components

TopNav · View in Storybook
Metric Before After Delta
Bundle Size (ESM) N/A 1.2KB N/A
Lines of Code N/A 1502 -
Complexity N/A Very High (92) -

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@xds/core 10.7KB 17.0KB 2.6KB

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@cixzhang
cixzhang force-pushed the navi/fix/mega-menu-radius branch from 86aa2b0 to 7eddc6e Compare March 18, 2026 23:41
The MegaMenu popover panel previously had 0 radius on top corners and
--radius-3 on bottom corners. Changed to use --radius-3 uniformly on
all corners for a consistent rounded appearance.

Co-authored-by: Navi <[email protected]>
@cixzhang
cixzhang force-pushed the navi/fix/mega-menu-radius branch from 7eddc6e to c39ea72 Compare March 19, 2026 02:10
@cixzhang
cixzhang merged commit e7bfc1c into main Mar 19, 2026
11 checks passed
@cixzhang
cixzhang deleted the navi/fix/mega-menu-radius branch March 19, 2026 02:48
cixzhang added a commit that referenced this pull request Apr 26, 2026
The MegaMenu popover panel previously had 0 radius on top corners and
--radius-3 on bottom corners. Changed to use --radius-3 uniformly on
all corners for a consistent rounded appearance.

Co-authored-by: Navi <[email protected]>
cixzhang added a commit that referenced this pull request Jun 21, 2026
The MegaMenu popover panel previously had 0 radius on top corners and
--radius-3 on bottom corners. Changed to use --radius-3 uniformly on
all corners for a consistent rounded appearance.

Co-authored-by: Navi <[email protected]>
cixzhang added a commit that referenced this pull request Jun 21, 2026
The MegaMenu popover panel previously had 0 radius on top corners and
--radius-3 on bottom corners. Changed to use --radius-3 uniformly on
all corners for a consistent rounded appearance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant