Skip to main content

Decision button group

Decision button group presents the user with a choice of two options in a compact layout for a specific decision.

A decision button group with Reject and Approve actions.

Use a decision button group when:

  • A user decision is needed on how to proceed with a specific action.
  • User feedback or choice needs to be captured.
  • The group represents one compact decision point in a flow.
  • The actions have equal priority.
  • The buttons achieve single-selection and deselection capability together.
  • One action is clearly primary and the others are secondary; use Button bar instead.
  • The actions are unrelated such as 'Share' and 'Edit'.
  • The group is being used as a page-level action bar.
  • When you want to change the view or state of information or content on the page, use Toggle button group instead.

A decision button group contains:

  1. Buttons: Possible actions or choices that users can take.
  2. Groups: Used to visually communicate which buttons are related to each other.
Comparison of a default decision button group and a selectable decision button group.
  • Use Button to display actions in a decision button group.
  • Use ToggleButton to display actions in a selectable decision button group.
A decision button group with spacing-100 between the buttons.
Best practices
  • Use spacing-100 between buttons. For more information, read Salt guidance on horizontal spacing.
  • Don't mix Button and Toggle button in the same group.

Use a button to display the choices when the user's decision is immediately registered and submitted on click, such as Approve/Reject. Each button then returns to its default state, with no selection remaining visible.

Use a toggle button to display the choices when the user's decision needs to remain visible, or is submitted or collected at a later point in the flow. The selected button stays selected as the current value until the user changes or deselects it.

When a user selects an option, any previously selected option in the group should be deselected. This prevents conflicting selections. Users can deselect both decisions if they decide they prefer not to submit feedback.

Selectable decision button group examples showing selected and deselected options.

Group the buttons together visually and semantically so assistive technology can identify the controls as part of one decision or action set. The group should always have an accessible name when the surrounding context does not already make its purpose clear.

Good accessible group names describe the decision being made, not the visual layout. Each button still needs its own accessible name. The group name explains the shared purpose; the button name explains the individual option.

If you need to expand the pattern or share feedback with us, please contact the team.