menu role
The ARIA role for an application-style list of actions, like a File or Edit menu, navigated with arrow keys.
In more detail
Items use role menuitem and are reached with Up and Down arrows, Home, End and typeahead; Tab leaves the menu. Menus are for actions, not for site navigation links, which should be a plain list inside a <nav> landmark.
Related terms
- roving tabindex — A technique where only the active item in a group has tabindex="0" and the rest have tabindex="-1", so the group is one tab stop and arrow keys move between items.
- typeahead — Jumping to the first item in a list or menu whose label starts with the character the user types.
- submenu — A menu opened from an item in another menu, typically with the Right arrow key and closed with Left arrow or Escape.
- landmark — A region of a page, such as navigation, main content or footer, that assistive technology users can jump between.
Taught in
- Navigation & Disclosure: Dropdown Menus, Tabs & Accordions — Design Systems & Component Engineering