Background
The error state in the Codex Checkbox component is missing. We need to implement the following missing states:
Unselected:
- Error unselected
- Error-hover unselected (new token border-color-error--hover is needed)
- Error-active unselected (new token background-color-error--active is needed)
- Error-focus unselected
Selected:
- Error selected (new token background-color-error is needed)
- Error-hover selected (new token background-color-error--hover is needed)
- Error-active selected (new token background-color-error--active is needed)
- Error-focus selected
The error state should be interactive like the non-error state. So we will need to create the following new color tokens to use in these error states:
- background-color-error
- background-color-error--hover
- background-color-error--active
- border-color-error--hover
Known use cases
| Checkboxes in the T&S tools project | |
- Here is a link to the Figma file where the Incident Reporting System is using check boxes in error state
User stories
- As a user I need to use the Checkbox error state when checkbox selection is missing in a mandatory form field.
Previous implementations
- Codex demo: Checkbox component in Codex
- Design style guide: Checkbox guidelines in the DSG
- OOUI: Checkbox component in OOUI
- Vue: /-
Design spec
Open questions
Add here the questions to be answered in order to design and implement the component
Acceptance criteria (or Done)
Design
- Design the Figma spec sheet and add it in this task
- Add new color tokens as styles in the Figma library and use them to style the checkbox error states:
- background-color-error
- background-color-error--hover
- border-color-error--hover
- background-color-error--active
- Update the component in the Figma library. This step will be done by a DST member.
Code
- Create the new color tokens:
- background-color-error
- background-color-error--hover
- border-color-error--hover
- background-color-error--active
- Update the component in Codex














