Action group

Version 8.0.0

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

Example illustrating action group component. Four action buttons together to form an action group, icon and labels Edit, Copy, Delete, icon-only More.
DateVersionSpectrumExpress UI KitSep 12, 20228.0.0DownloadDownloadApr 06, 20227.0.0DownloadDownloadFeb 07, 20226.1.0DownloadDownloadSep 15, 20206.0.0Download

Anatomy#

Image illustrating through labels the component parts of an action group, including its two action buttons creating an action group.

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.

Key example of four action groups showing the size options available including small, medium, large, and extra-large. All sizes show an action group with 2 action buttons. First button with pencil icon, label Edit. Second button with duplicate icon, label Copy.

Size#

Action groups come in four different sizes: small, medium, large, and extra-large. The medium size is the default and most frequently used option. Use the other sizes sparingly; they should be used to create a hierarchy of importance within the page.

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 Valueorientationhorizontal / verticalhorizontalsizesmall / medium / large / extra-largemediumdensityregular / compactregularis justifiedyes / nonois quietyes / nonois emphasizedyes / nonoenable selectionyes / nonoselection modesingle / multiple
Only applicable if selection is enabled
single
allows empty selectionyes / no
Only applicable if selection is enabled
no
overflow modewrap / collapsewrapis disabledyes / nono

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#

KeyInteractionRight Arrow / Down ArrowMoves focus to the next button in the group.Left Arrow / Up ArrowMoves focus to the previous button in the group.

Theming#

A theme is an intentional, systematic customization of Spectrum. It has unique visual attributes. For more information, view Theming.

Key example showing two action groups in the Spectrum for Adobe Express theme. Regular density action group with 2 action buttons with icon and text label, first action button is selected with emphasis. Labels, Document setup, Settings. Compact density action group with 3 action buttons with icons, without visible labels, first action button is selected. Icons, left text alignment, center text alignment, right text alignment.

Spectrum for Adobe Express#

Action groups in Spectrum for Adobe Express have added spacing between action buttons in the compact option. Other attributes stay the same across themes.

Changelog#

DateNumberNotesSep 12, 20228.0.0
  • Inherited action button 8.0.0 updates (non-emphasis colors, icon colors, disabled colors, keyboard focus state design)
Apr 06, 20227.0.0
  • Updated all colors to 6.0.0
Feb 07, 20226.1.0
  • Added size option
Sep 15, 20206.0.0
  • This component has been added to the website (separated from action button)

Design checklist#

check

All interactive states

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

check

All color themes

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

check

All platform scales

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

check

Accessible use of color

Color is not used as the only visual means of conveying information (WCAG 2.0 1.4.1).

check

Accessible contrast for text

Text has a contrast ratio of at least 4.5:1 for small text and at least 3:1 for large text (WCAG 2.0 1.4.3).

check

Accessible contrast for UI components

Visual information required to identify components and states (except inactive components) has a contrast ratio of at least 3:1 (WCAG 2.1 1.4.11).

check

Content design

UI language and information design considerations have been incorporated into component design.

check

Defined options

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

unchecked

Defined behaviors

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

unchecked

Usage guidelines

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

N/A

Writing guidelines

Includes content standards or usage guidelines for how to write or format in-product content for the component.

check

Internationalization guidelines

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

check

Keyboard interactions

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

check

Design tokens

All design attributes (color, typography, layout, animation, etc.) are available as design tokens.

check

UI kit

Includes a downloadable XD file that shows multiple options, states, color themes, and platform scales.

check

Generated UI kit

Includes a downloadable XD file, generated by code using design tokens defined in Spectrum DNA, and shows multiple options, states, color themes, and platform scales.

check

In Spectrum for Adobe XD plugin

Component is included in the Spectrum for Adobe XD plugin.