Skip to content

[Bug][a11y]: MenuItem with submenu lacks aria-haspopup and aria-expanded #3248

@majornista

Description

@majornista

Code of conduct

  • I agree to follow this project's code of conduct.

Impacted component(s)

MenuItem

Expected behavior

A MenuItem containing a submenu should have aria-haspopup="true", aria-expanded to reflect the expanded/collapsed state of the submenu, and aria-controls with the IDREF for the expanded menu.

Actual behavior

MenuItem provides no indication that the menu expands to a submenu, and no indication of the current state.

Screenshots

No response

What browsers are you seeing the problem in?

No response

How can we reproduce this issue?

  1. Go to '...'
  2. Click on '....'
  3. Scroll to '....'
  4. Check console
  5. See error

Sample code that illustrates the problem

No response

Logs taken while reproducing problem

No response

Metadata

Metadata

Assignees

Labels

Component: Menua11yIssues or PRs related to accessibilitybugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions