Appearance
Overflow menu
A labelled Actions trigger that holds the actions of a panel, page or row.
contextmenuactions-contextmenuactionsshell--overflow-menu-openOpen in Storybook ↗When to use
- A panel, page header or selection has several actions and none of them is clearly the main one.
- A list row needs actions without taking room from its columns.
When not to use
- One action is used far more than the rest: use a split button.
- Only one action: show it as a plain button.
Anatomy
- Trigger: a small secondary button with the label Actions and a chevron. A menu with one subject can use a more specific label, such as Saved searches.
- Menu: the same menu as the split button: optional icon (
--menu-icon-size) and label per item (--menu-item-padding,--menu-item-gap), at least--menu-min-widthwide. Destructive items use--color-danger-inkand sit last.
Variants
| Variant | Where | Trigger |
|---|---|---|
| Labelled | panels, page headers, toolbars | Actions ▾ or a specific label |
| Row | list rows | ⋮ under the list's Actions column header |
| Sheet | screens below 48rem | ⋮; the menu opens as a bottom sheet |
contextmenuactions-contextmenuactionsshell--custom-trigger-labelOpen in Storybook ↗contextmenuactions-contextmenuactionsshell--in-list-rowOpen in Storybook ↗Outside a list row the trigger is never a bare ⋮. The label is what tells people there are actions at all. The row is the one exception: the column header names the ⋮, and repeating Actions on every row would crowd the list.
On a small screen there is no room for the label, so the trigger is a ⋮ and the menu opens as a sheet along the bottom of the screen, over a dimmed page. From a list row, the sheet shows the record's thumbnail and title on top and Open preview as its first item.
contextmenuactions-contextmenuactionsshell--small-screen-sheetOpen in Storybook ↗States
| State | What you see | Trigger |
|---|---|---|
| Resting | secondary button, chevron points down | — |
| Hover | hover fill | pointer |
| Focus | focus ring | keyboard |
| Open | chevron points up, menu under the trigger | click, Enter, Space or ↓ |
| Disabled item | item in disabled ink with a help icon; its tooltip says why | the action does not apply |
contextmenuactions-contextmenuactionsshell--disabled-itemOpen in Storybook ↗The menu opens under the trigger, aligned to its left edge. Near the right edge of the window it aligns to the trigger's right edge, and near the bottom it opens upwards.
Keyboard & accessibility
| Key | On the trigger | In the menu |
|---|---|---|
| Enter / Space | opens or closes the menu | runs the focused item |
| ↓ | opens the menu (labelled trigger) | next item (wraps) |
| ↑ | — | previous item (wraps) |
| Home / End | — | first / last item |
| Escape | — | closes the menu, focus back on the trigger |
| Tab | — | closes the menu, focus back on the trigger |
When the menu opens, focus moves to its first item. A click outside the menu or a scroll closes it without running anything.
- The trigger has
aria-haspopup="menu"andaria-expanded. - The labelled trigger is named by its label; when it knows what it acts on, its name becomes Actions for {title}.
- The ⋮ trigger has no visible text, so it always has an accessible name: Actions for {title}, the specific label, or Actions.
- The menu is a
role="menu"withrole="menuitem"items; a disabled item hasaria-disabled="true".
Content
- Use Actions unless the menu has one clear subject; then name it (Saved searches).
- Menu items start with a verb: Duplicate, Export, Delete.
- Whether an item is destructive comes from the action's configuration (
tone: Danger), not from its label. The menu then colours it and moves it to the end. - Translation keys:
contextMenu.actionsandcontextMenu.actions-for.