Repository navigation
[navigation menu] Remove invalid aria-orientation - #4355
Conversation
commit: |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
48dc75c to
da08878
Compare
da08878 to
a9d0f21
Compare
Codex ReviewOverviewThis patch removes an unsupported Findings (None)No blocking issues found in this patch. Confidence: 4/5High confidence based on a full review of the branch diff across the changed logic and regression tests. The patch is narrow, the override is necessary because the composite root still injects |
Fixes #4349
Summary
NavigationMenu.List currently renders
aria-orientationon a plainul, which triggers accessibility checks because that implicit role does not support the attribute. This change stops Navigation Menu from outputtingaria-orientationon either top-level or nested lists.Changes
NavigationMenu.Listdoes not renderaria-orientation.Notes
upstream/master,pnpm test:jsdom NavigationMenuRoot --no-watchfails before running tests because Vite cannot resolvedate-fns/addDaysfrompackages/react/src/temporal-adapter-date-fns/TemporalAdapterDateFns.ts.pnpm exec eslint packages/react/src/navigation-menu/list/NavigationMenuList.tsx packages/react/src/navigation-menu/root/NavigationMenuRoot.test.tsxpasses.