[Menu] ARIA APG: Disabled menu items should be focusable with keyboard navigation
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Current behavior 😯
- Enter into a Menu with a disabled item
- Use keyboard to navigate Menu
- Observe that disabled items cannot be focused
Expected behavior 🤔
- Enter into a Menu with a disabled item
- Use keyboard to navigate Menu
- Disabled items can be focused
- Disabled items cannot be activated
Steps to reproduce 🕹
Steps:
https://codesandbox.io/s/mui-disabled-menu-item-keyboard-navigation-8k3rwl
- Move focus into Menu
- Use keyboard to navigate
- Observe behaviour
Context 🔦
According to APG menu/menubar pattern[1], disabled menu items should be focusable but cannot be activated (see "NOTE" in [1]).
The APG menu button pattern[2] does not override these requirements, and instead specifies that the specifications of Menu/Menubar should be followed after a menu is opened.
[1] https://www.w3.org/WAI/ARIA/apg/patterns/menu/
[2] https://www.w3.org/WAI/ARIA/apg/patterns/menubutton/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the behavior in the linked CodeSandbox and trace the Menu keyboard-navigation implementation. Check the existing Menu behavior and tests, then ensure disabled items receive keyboard focus without activation; done means navigation reaches them while activation remains blocked.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- accessibility, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100