Skip to content

[navigation menu] Fix duplicate aria-orientation - #4309

Merged
atomiks merged 1 commit into
mui:masterfrom
atomiks:codex/navigation-menu-4305-aria-orientation
Mar 12, 2026
Merged

atomiks merged 1 commit into
mui:masterfrom
atomiks:codex/navigation-menu-4305-aria-orientation

Conversation

@atomiks

@atomiks atomiks commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #4305 by removing the duplicate aria-orientation attribute from NavigationMenu.Root.

What changed

  • Removed aria-orientation from NavigationMenu.Root, so the root element no longer renders an invalid duplicate attribute.
  • Applied aria-orientation to nested NavigationMenu.List instances as well, since nested lists bypass CompositeRoot and still need the attribute.

@atomiks atomiks added type: bug It doesn't behave as expected. component: navigation menu Changes related to the navigation menu component. labels Mar 12, 2026
@pkg-pr-new

pkg-pr-new Bot commented Mar 12, 2026 •

Copy link
Copy Markdown
  • base-ui-tanstack-start

  • vite-css-base-ui-example

    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/react@4309
    
    pnpm add https://pkg.pr.new/mui/base-ui/@base-ui/utils@4309
    

commit: 08dbaa5

@mui-bot

mui-bot commented Mar 12, 2026 •

Copy link
Copy Markdown

Bundle size report

Bundle Parsed size Gzip size
@base-ui/react ▼-5B(0.00%) ▼-2B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@netlify

netlify Bot commented Mar 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit 9c29ed9
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/69b25a6db6f33a00087cccbd
😎 Deploy Preview https://deploy-preview-4309--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@atomiks
atomiks force-pushed the codex/navigation-menu-4305-aria-orientation branch from 211dc80 to 9c29ed9 Compare March 12, 2026 06:17
@atomiks

atomiks commented Mar 12, 2026

Copy link
Copy Markdown
Contributor Author

Codex Review

Overview

This patch fixes the duplicate aria-orientation output in NavigationMenu by removing the attribute from the root element and keeping it on the list, including nested list cases. The added tests cover both top-level and nested menus so the regression stays guarded.

Findings (None)

No blocking issues found in this patch.

Confidence: 4/5

High confidence based on a full review of the branch diff against master, an explicit second pass over rendering correctness, accessibility semantics, API/state behavior, maintainability, performance risk, and test coverage, plus a targeted NavigationMenuRoot JSDOM test run.

@atomiks
atomiks marked this pull request as ready for review March 12, 2026 06:21
@atomiks
atomiks merged commit a3190b8 into mui:master Mar 12, 2026
6 checks passed
@atomiks
atomiks deleted the codex/navigation-menu-4305-aria-orientation branch March 12, 2026 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: navigation menu Changes related to the navigation menu component. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[navigation menu] duplicate aria-orientation attributes

2 participants