Skip to content

[navigation menu] Invalid use of aria-orientation #4349

Closed

Description

@mririgoyen

Bug report

Current behavior

The NavigationMenu component adds an aria-orientation attribute to the ul from NavigationMenu.List. This is not appropriate in it's current state because the ul element in this situation is assuming the default list role which does not support aria-orientation.

Expected behavior

The role of menubar should be added to the ul element, explicitly defining it as a menu bar that contains menu items. This is appropriate because the NavigationMenu component implements keyboard interaction pattern that are expected for a menubar role. Then, the aria-orientation attribute is allowed and does not throw errors in accessibility checks.

Additionally, the menuitem role would need to be added to each NavigationMenu.Item to satisfy all accessibility checks.

Reproducible example

The documentation example includes it: https://base-ui.com/react/components/navigation-menu

Base UI version

1.3.0

Which browser are you using?

All

Which OS are you using?

All

Which assistive tech are you using (if applicable)?

Playwright AXE

Activity

  1. linear commented on Mar 16, 2026

    @linear
  2. added
    type: bugIt doesn't behave as expected.
    and removed on Mar 17, 2026
  3. github-actions commented on Mar 17, 2026

    @github-actions

    This fix will be available in the next npm release of Base UI.

    In the meantime, you can try it out on our Canary release channel:

    npm i https://pkg.pr.new/@base-ui/react@4355
  4. changed the title [-][Navigation Menu] Invalid use of `aria-orientation`[/-] [+][navigation menu] Invalid use of `aria-orientation`[/+] on Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: navigation menuChanges related to the navigation menu component.type: bugIt doesn't behave as expected.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions