Brand Guide

Components

Radio

Picks exactly one option from a short list.

Default

How should Dex contact you?

With descriptions

Each label goes medium and a muted description sits under it.
How should Dex contact you?

New role matches and interview updates, as they happen.

A call from your talent partner, weekdays 9am to 6pm.

Quick messages about next steps and interview times.

Controlled

What is your notice period?

Dex tells companies you can start in 1 month.

Invalid

Every option takes the red border, with one message under the group.
Do you have the right to work in the UK?

Disabled

Where do you want to work?

Best practices

  • Use radios for picking exactly one option from a short list. For several options use checkboxes.
  • A radio is always shown in a group, in a FieldSet with its question as the FieldLegend.
  • Join each radio to its label with id and htmlFor, so pressing the label chooses it. The label takes font-normal unless a description follows it.
  • Set invalid on the FieldSet, or aria-invalid on the RadioGroup, and every option's border turns red. One message goes under the group.
  • A disabled radio that is selected keeps its fill, so it still shows the choice.