Skip to content

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 ​

  1. 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.
  2. 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-width wide. Destructive items use --color-danger-ink and sit last.

Variants ​

VariantWhereTrigger
Labelledpanels, page headers, toolbarsActions ▾ or a specific label
Rowlist rows⋮ under the list's Actions column header
Sheetscreens 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 ​

StateWhat you seeTrigger
Restingsecondary button, chevron points down—
Hoverhover fillpointer
Focusfocus ringkeyboard
Openchevron points up, menu under the triggerclick, Enter, Space or ↓
Disabled itemitem in disabled ink with a help icon; its tooltip says whythe 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 ​

KeyOn the triggerIn the menu
Enter / Spaceopens or closes the menuruns 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" and aria-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" with role="menuitem" items; a disabled item has aria-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.actions and contextMenu.actions-for.

Split button · Accessibility

Powered by Elody - Open Source Semantic Data Platform