Adding aria-roles to the Menu, Menu Item and SubmenuBlock
See original GitHub issueDesired behaviour
It would be great if we could add some aria-roles
to the Menu
, Menu Item
and SubmenuBlock
to avoid accessibility issues that we are currently facing when working with these components.
Current behaviour
Currently there is no aria-roles
or any other aria
properties (besides the aria-label
) added to the Menu, Menu Item and SubmenuBlock
Suggested Solution
No response
CodeSandbox or Storybook URL
No response
Anything else we should know?
No response
Confidentiality
- I confirm there is no confidential or commercially sensitive information included.
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
ARIA: menu role - Accessibility - MDN Web Docs - Mozilla
The menu role is appropriate when a list of menu items is presented in a manner similar to a menu on a desktop...
Read more >Using ARIA menus - WCAG WG
A menu widget usually consists of a main menu bar with pop up menus. Items in pop up menus often have sub pop...
Read more >ARIA role="menuitem" for <a> or <li> - Stack Overflow
When focus is in a menu and on an item that does not have a submenu, performs the following 3 actions: Closes the...
Read more >Slide 30: Menu Button: Add ARIA roles, properties and states
Accessible name for the button comes from the text content of the button element. Menu and Menuitem Elements. Container ul element has the...
Read more >Creating Accessible Menus and Mega Menus - Level Access
In contrast, the use of ARIA Menu markup involves the addition of role=”menu” or role=”menubar” upon a grouping container element, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Morning @mrtn-a! Sounds like a good plan 👍
Might be a good one to bring along for discussion at this afternoon’s Accessibility Surgery, if you’re able to?