Skip to content

Action menu

Action menu is composed of action list and overlay patterns used for quick actions and selections.

Usage

Action menu is used for actions, navigation, to display secondary options, or single/multi select lists. They appear when users interact with buttons, actions, or other controls.

Anatomy

Action menu opened with a label for the trigger (button), overlay (menu), and the internal action list.

Options

The trigger button can be a standard or icon button. For single select menus that display the selection in the trigger, a label must be persist either internally or externally.

Menus can contain simple actions and links, single select items, or multi select items.

Behavior

Opening

Open by clicking the trigger button with a mouse

Open by focusing the trigger button and hitting return, space, or any arrow key

Closing

Default behavior

Close the menu by clicking on an item, clicking on the trigger, or clicking anywhere outside the menu.

Close the menu by hitting enter on an item, or esc.

Single and multi select

Single select menu closes upon selection and may update the button label.

Multi select menu closes upon selection and can be re-opened to select more options.

Responsive

Narrow viewports

For narrow viewports, ActionMenu should remain anchored to its trigger and stay within the bounds of the viewport.

Best practices

Do

Use ActionMenu for quick actions.

Don’t

For complex interactions, use SelectPanel.

Do

Use ActionMenu for simple selection.

Don’t

Use SelectPanel for a filtered search.

Do

Use a button to open a menu.

Don’t

Don’t use a link to open a menu.

Accessibility

See focus management for more information.

When a menu is open, hitting a letter key for the first letter in an item to be selected will move focus to that item. If two items have the same first letter, the first item in the list will be focused first, and hitting the letter key again will focus the next item.

Keyboard navigation

Trigger button

KeyDescription
EnterOpens the menu.
SpaceOpens the menu.
ArrowDownOpens the menu.
ArrowUpOpens the menu.
ArrowLeftOpens the menu.
ArrowRightOpens the menu.
KeyDescription
ArrowUpCycle through items starting with current item to previous item
ArrowDownCycle through items starting with current item to next item
ArrowLeftCycle through items starting with current item to previous item
ArrowRightCycle through items starting with current item to next item
HomeMove focus to first item
PageUpMove focus to first item
EndMove focus to last item
PageDownMove focus to last item
EscClose menu