Elements
Checkboxes
Checkboxes allow people to select one or more options from a list, or toggle a single option on or off.
Guidelines
When using checkboxes, allow people to select anywhere in the checkbox or label to select that option.
Display the options from top to bottom, not left to right. This means that people:
- can scan the options
- who have zoomed in to the content will not have to scroll side to side to work out which checkbox they need to select
Consider letting people select a 'None of these' option. Some people might need this so that they can move on to the next question or task.
We've used our foundations to design checkboxes. For consistency across Co-op products and services, do not change the styling of the checkboxes.
Labels
Checkboxes must have a label that tells people what information to enter. Space form fields evenly and close to their associated label.
The label must be short and make it clear what information you’re asking for.
Hint text
You can add optional hint text to help people understand the information they need to enter.
For example, you might want to make it clear to a user that they can select multiple options. For this you could add hint text ‘Select all that apply’.
Error messages
Give error messages after the user submits the form.
Error messages should appear above the relevant checkboxes. This means they are read out by assistive technology in an order that makes sense.
Go to the guidelines on form validation.
Focus ring
The focus ring appears as a purple outline around any object, including checkboxes, when someone selects it.
Do not remove the focus ring. Some people who use assistive technology need it to navigate our products and services.
Examples
Checkboxes.
Checkboxes with hint text.
Checkboxes with error message.
Checkboxes with hint text and error message.
Single checkbox.
Single checkbox with hint text.
Single checkbox with error message.
Single checkbox with hint text and error message.
Changelog for this page
Date | Notes |
---|---|
4 June 2021 | First version of page published |