Menu button meets WCAG 2.2 level AA when used as described on these pages. It follows the Menu Button pattern of the WAI-ARIA Authoring Practices.
Keyboard
| Key |
Action |
| Enter, Space, ↓ |
Open the menu and focus the first item. |
| ↑ ↓ |
Move between items. Typing a letter jumps to an item. |
| Enter |
Runs the item and closes the menu. |
| Esc |
Closes the menu and returns focus to the button. |
aria-haspopup="menu" and aria-expanded on the button.
role="menu" and role="menuitem", with arrow keys, type-ahead and focus return.
- The menu stays inside the screen and flips when there is no room.
What your team does
- Name an icon-only trigger with what it acts on: “More actions for Orders to ERP”.
- Keep menu items as actions; use navigation for pages and a select for values.
- Ask for confirmation before a delete item runs.
WCAG criteria
| Criterion |
Level |
How |
| 2.1.1 Keyboard |
A |
Every item reachable with arrow keys |
| 2.4.3 Focus Order |
A |
Focus returns to the button on close |
| 4.1.2 Name, Role, Value |
A |
aria-expanded follows the menu |