Radio Group

A radio group let the user make a mutually exclusive selection from a group of options.

Specifications

Radio group design specifications
Radio group design specifications

States

The following states are defined in the life cycle of the component: unselected enabled, unselected hover, unselected focus, unselected disabled, selected enabled, selected hover, selected focus and selected disabled.

Radio button states
Radio button states

The following states are defined in the life cycle of the component: enabled, error, readOnly and disabled.

Radio group states
Radio group states

Anatomy

Radio group anatomy
  1. 1.
    Label
  2. 2.
    Helper text
  3. 3.
    Radio input
  4. 4.
    Radio input label
  5. 5.
    Error message

Design tokens

Color

Component tokenElementCore tokenValue
radioInputColorRadio inputcolor-blue-700#0086e6
hoverRadioInputColorRadio input:hovercolor-blue-800#0067b3
focusBorderColorRadio input:focuscolor-blue-600#0095ff
activeRadioInputColorRadio input:activecolor-blue-900#003c66
errorRadioInputColorRadio input:errorcolor-red-700#d0011b
hoverErrorRadioInputColorRadio input:error:hovercolor-red-800#980115
activeErrorRadioInputColorRadio input:error:activecolor-red-900#65010e
disabledRadioInputColorRadio input:disabledcolor-grey-500#999999
readOnlyRadioInputColorRadio input:readonlycolor-grey-500#999999
hoverReadOnlyRadioInputColorRadio input:readonly:hovercolor-grey-600#808080
activeReadOnlyRadioInputColorRadio input:readonly:activecolor-grey-700#666666
labelFontColorLabelcolor-black#000000
disabledLabelFontColorLabel:disabledcolor-grey-500#999999
helperTextFontColorHelper textcolor-black#000000
disabledHelperTextFontColorHelper text:disabledcolor-grey-500#999999
radioInputLabelFontColorInput labelcolor-black#000000
disabledRadioInputLabelFontColorInput label:disabledcolor-grey-500#999999
errorMessageColorError messagecolor-red-700#d0011b

Typography

Component tokenElementCore tokenValue
fontFamilyLabelfont-family-sans'Open Sans', sans-serif
labelFontSizeLabelfont-scale-020.875rem / 14px
labelFontWeightLabelfont-weight-semibold600
labelLineHeightLabelfont-leading-loose-011.715em
labelFontStyleLabelfont-style-normalnormal
helperTextFontSizeHelper textfont-scale-010.75rem / 12px
helperTextFontWeightHelper textfont-weight-regular400
helperTextFontStyleHelper textfont-style-normalnormal
helperTextLineHeightHelper textfont-leading-normal1.5em
radioInputLabelFontSizeInput labelfont-scale-020.875rem / 14px
radioInputLabelFontWeightInput labelfont-weight-regular400
radioInputLabelFontStyleInput labelfont-style-normalnormal
radioInputLabelLineHeightHelper textfont-leading-loose-011.715em
PropertyElementCore tokenValue
font-sizeError messagefont-scale-010.75rem / 12px
font-weightError messagefont-weight-regular400
line-heightError messagefont-leading-normal1.5em

Border

PropertyElementCore tokenValue
border-widthRadio inputborder-width-22px
border-styleRadio inputborder-style-solidsolid
border-widthFocus borderborder-width-22px
border-styleFocus borderborder-style-solidsolid

Spacing

Component tokenElementCore tokenValue
groupLabelMarginLabel/Helper textspacing-80.5rem / 8px
radioInputLabelMarginInput Labelspacing-80.5rem / 8px
groupVerticalGutterRadio item*spacing-40.25rem / 4px
groupHorizontalGutterRadio itemspacing-322rem / 32px

(*) Radio item = Radio input + Radio label

Size

PropertyElementValue
widthRadio input18px
widthfocus outline24px
heightRadio input18px
heightfocus outline24px

Margin

Margin can be set independently for top, right, bottom, and left.

MarginValue
xxsmall6px
xsmall16px
small24px
medium36px
large48px
xlarge64px
xxlarge100px

Accessibility

WCAG 2.2

WAI-ARIA 1.2