Version 1.0.0

Action group

An action group is a grouping of action buttons that are related to each other.

Options#


Image illustrating two options for action group orientation. Horizontal orientation has 2 action buttons side by side, labels Document setup, Settings. Three quick actions are below the buttons for Edit, Copy, and Delete actions. Vertical orientation has 2 action buttons stacked on top of each other, labels Document setup, Settings. Three quick actions are to the right of the stacked buttons for Edit, Copy, and Delete actions.

Orientation#

An action group can be either horizontal or vertical in its orientation. By default, an action group is horizontal. The vertical option should be reserved for when horizontal space is limited.

Image illustrating two options for action group density. Regular density action group with 2 action buttons in both icon-only and text label variants. Labels Document setup, Settings. Three quick actions below the action buttons for Edit, Copy, and Delete actions. Compact density action group with 3 action buttons in both icon-only and text label variants. Labels Grid view, List view, Gallery view. 3 quick actions are to the right of the stacked buttons for Edit, Copy, and Delete actions.

Density#

Action groups come in 2 densities: regular and compact. The compact density retains the same font and icon sizes, but has tighter spacing. The action buttons also become connected for non-quiet action groups.

Image illustrating 2 options for action group justification. Not justified action group, aligned to the left, 4 action buttons in both icon-only and text label variants. Labels Document setup, Settings, Grid view, List view. Justified action group, aligned center with equal spacing between buttons, 4 action buttons in both icon-only and text label variants. Labels Document setup, Settings, Grid view, List view.

Justified#

An action group can become justified. By default, it is not justified since the action button size depends on the label and/or icon inside each button. When an action group is justified, it takes up the entire available container width, divided equally for each action button that is inside the group.

Image illustrating 2 options for action button style. Not quiet style, 2 action buttons, labels Document setup, Settings. Quiet style, 3 action buttons, labels Edit, Copy, Delete.

Quiet#

By default, an action group uses not-quiet action buttons. This style works best in a dense array of controls where the background helps to separate action buttons from the surrounding container, or to give visibility to isolated buttons.

Alternatively, quiet action groups can have no visible background until they’re interacted with. This style works best when a clear layout (vertical stack, table, grid) makes it easy to parse the buttons. Too many quiet components in a small space can be hard to read.

Image illustrating enable selection options for action groups. Selection not enabled option, 2 action buttons in text label variant, labels Document setup, Settings. 3 quiet actions, in icon-only variant, actions Edit, Copy, Delete. Selection enabled option, 2 action buttons in text label variant, labels Document setup, Settings. 3 icon-only action buttons, actions Grid view, List view, Gallery view.

Enable selection#

By default, selection is not enabled in an action group. This is used for action groups that offer direct actions, rather than toggling.

Selection can be enabled for an action group to allow for toggling. This can be used to disclose parts of an interface (e.g., showing or hiding panels) or to switch between views (e.g., grid or list views).

Image illustrating selection mode options for action groups. Single selection option, 3 action buttons, labels Properties, Info, Keyword, Properties action selected. Multiple selection option, 3 action buttons, labels Properties, Info, Keyword, Properties and Info actions selected.

Selection mode#

When selection is enabled, an action group can allow for single or multiple selection of action buttons.

Image illustrating emphasis options for action groups. Not emphasized option, 5 action buttons, labels Document setup, Settings, Filters, Info, Tags. Selected options, Document setup and Filters, in grey color selection state. Emphasized option, 5 action buttons, labels Document setup, Settings, Filters, Info, Tags. Selected options, Document setup and Filters, in blue color selection state.

Emphasis#

Like action buttons, action groups are not emphasized by default. This is optimal for when the action group is not the core part of an interface, such as in application panels, where all components are monochrome in order to direct focus to the content.

The emphasized action group has a blue background for its selected state in order to provide a visual prominence that meets the accessible color contrast ratio. This is optimal for when the selection should call attention, such as within a tool bar.

Image illustrating empty selection options for action groups. Allows empty selection option, 2 action buttons, labels Document setup, Settings. No action selected. No empty selection option, 2 action buttons, labels Grid view, List view. Grid view in selected state.

Empty selection#

When selection is enabled, an action group's selection behavior can be set to allow for an empty selection, or not.

Image illustrating overflow mode options for action groups. Wrap option, 5 action buttons, left-aligned and wrapped to 2 lines, labels Edit, Cut, Copy, Delete, Move. Collapse option, 4 action buttons, left-aligned on 1 line, actions Edit, Cut, Copy, and other actions are within a More actions button.

Overflow mode#

When space is limited in an action group, there are 2 options for the group's overflow behavior: wrap or collapse. By default, an action group is set to wrap, meaning that the action buttons inside the group wrap to form another line. Alternatively, an action group can be set to collapse inside a More (...) action button.

Example of an action group in a disabled state. 3 action buttons, labels Edit, Copy, Delete, none able to be interacted with.

Disabled#

A action group in a disabled state shows that the action buttons within the group exist, but are not available in that circumstance. This state can be used to maintain layout continuity and to communicate that an action group may become available later.

Table of options#

From the design point of view, each component has a number of options. These options and their names are platform agnostic, and each implementation should adapt these to fit into their framework.

PropertyValuesDefault Value
orientation
horizontal / vertical
horizontal
density
regular / compact
regular
is justified
yes / no
no
is quiet
yes / no
no
is emphasized
yes / no
no
enable selection
yes / no
no
selection mode
single / multiple
Only applicable if selection is enabled
single
allows empty selection
yes / no
Only applicable if selection is enabled
no
overflow mode
wrap / collapse
wrap
is disabled
yes / no
no

Internationalization#


Example of an action group with UI mirrored. 3 action buttons with icons in Arabic, labels Delete, Copy, Edit.

RTL#

For RTL (right-to-left) languages, the layout of the action group is mirrored.

Keyboard interactions#


KeyInteraction
TabMoves focus to the next button in the group.

Changelog#


DateNumberNotes
Sep 15, 20201.0.0
  • This component has been added to the website (separated from action button)

Design checklist#


All interactive states

Includes all interactive states that are applicable (hover, down, focus, keyboard focus, disabled).

Multiple options

Includes relevant options (variant, style, size, orientation, optional iconography, decorations, selection, error state, etc.)

All color themes

Works properly across all four color themes (lightest, light, dark, darkest).

All platform scales

Includes a desktop scale (UWP, macOS, web desktop) and a mobile scale (iOS, Android, web mobile).

Defined behaviors

Includes guidelines for layout (wrapping, truncation, overflow), animation, interactions, etc.

Usage guidelines

Includes a list of dos and don’ts that highlight best practices and common mistakes.

Accessible contrast

Follows WCAG 2.0 standards for contrast (AA).

Internationalization guidelines

Works properly across various locales and includes guidelines for bi-directionality (RTL).

Keyboard interactions

Follows WCAG 2.0 standards for keyboard accessibility guidelines and includes a description of the keyboard interactions.

Design tokens

All design attributes (color, typography, layout, animation, etc.) are included in Spectrum DNA.

Generated UI kit

Includes a downloadable XD file that has been generated by code and shows multiple variations, states, color themes, and scales.

In Spectrum for Adobe XD plugin

Component is included in the Spectrum for Adobe XD plugin.