Radio buttons allow a user to select a single item from a list of options. When a new item has been selected, the earlier choice is automatically deselected.
Radio buttons can be selected or deselected. Only one radio button can be selected at a time.
Size (small, medium and large) allows a user to select the size of the radio button for the context they are working within.
Radio groups can be stacked either horizontally or vertically. By default, radio groups are vertical. Use a horizontal radio group when vertical space is limited.
By default, radio buttons are emphasised (with colour) to provide maximum visual prominence. This is best for forms, settings, lists and other situations where a radio button needs to be noticed. The non-emphasised option is available when the radio button needs to be less visually noticeable on the page.
Users can trigger an item directly by pressing the radio button input or its label. Having both regions interactive creates a more accessible target.
One radio button should be selected by default. Users can navigate between radio button inputs by pressing the up or down arrow keys. Users can trigger a state change by pressing space while the checkbox input has focus.
Shell DS components are programmatically determinable with appropriate semantic markup and are designed to meet colour contrast requirements. If you’re not using Shell DS code, you will need to cover the accessibility considerations for each component in this pattern.
Every effort has been made to ensure that the Shell Design System follows accessibility best practice.
The Shell DS React framework incorporates keyboard operation to support the widest variety of assistive technologies and devices. For any future frameworks other than React, accessibility will need to be reviewed.
Help us to help you by contacting the Accessibility team for support and information regarding any questions relating to accessibility.
Is this page useful for you?
Your feedback helps to improve our documentation.