Skip to main content

Selected State

A selected state refers to the visual representation of a UI element that a user has interacted with to select, indicating it is currently active or highlighted.

Overview

Selecting a UI element is a fundamental and common interaction in many user interfaces. It allows users to identify and interact with specific items within a group.


Do's and Don'ts

Do
  • Ensure selected elements are clearly distinct.
  • Use our suggested visual cues to avoid ambiguity.
  • Use our suggested visual cues to maintain consistency across designs.
Don't
  • Avoid excessive visual changes to prevent clutter.
  • Don't compromise the readability of text or content within the selected element.


Visual indicators

We've put together a list of items and visual cues which you should or could use to highlight selected boxes and cards.

Make sure you use the ones in 'Must do' for all your selections and consider using the ones in 'Can do' to make the selection stand out more explicitly.

Border

  • Change the border colour to $color-border-selected-brand as the default token for selected state. Use $color-border-selected as an alternative to orange.

  • Change the border weight to 2px.

Using $color-border-selected

Example of list components with selected state using the border-selected token.

Using $color-border-selected-brand

Example of list components with selected state using the border-selected-brand token.

Iconography

  • In components using a specific placeholder slot, use the tick icon.

  • In components using placeholder slots with different size options, use a 24x24px tick icon, and set it to $color-content-brand colour.

Example of list components unselected and selected using iconography a combination of border and iconography to communicate selection.

Component variant

  • Use UI controls like radio buttons or checkboxes to indicate selections.

  • Make sure you're using the 'selected' variant of the component.

Example of different components in the selected variant.

Aim for consistency

If selected state is presented across several steps of the journey use the same border for all components.

Do
Example of a mobile screen with several list item components with consistent selected state.
Don't
Example of a mobile screen with several list item components with inconsistent selected state.

Back to top