A button group is a set of input components grouped in a logical set. The action of each button is clearly identified with a label and/or icon so that users can select or deselect options.
Depending on the type (radio or checkbox), one or multiple buttons within the group can be either selected or deselected respectively.
With icon where buttons within the group can either have an icon and a label, or an icon only.
A button group can be extra-small, small, medium or large.
A button group has a default set of three buttons within it.
An icon can be placed to the left or right of the label. Alternatively, a button can feature an icon without a label.
A set of buttons are grouped in a logical set.
Make labels on buttons in the group clear and concise, and ideally no more than two or three words. Use words which inform the user which option the button will select or deselect.
These should clearly represent the button’s action.
In a radio button group, selection is exclusive so selecting one button automatically deselects the others.
In a checkbox button group, multiple buttons can be selected simultaneously and need to be manually deselected.
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.