Background
At the moment, Combobox, Lookup, and Radio doesn't provide error state. Since any component contained within Field could contain errors, we will need to include the error state in:
- Radio: there is an option where the Radio group with no initial selection. In this case, the radios could contain errors in case the form Field is mandatory and the user doesn't select one of the radios.
- Combobox: If the form Field is mandatory and the user leaves the Combobox empty with no selection, would the Combobox contain an error?
- Lookup: same, in case the form Field is mandatory and the user leaves the Lookup empty with no selection from the menu, would the Lookup contain an error?
We need to include the error states in these components.
User stories
- As a user, I need to be informed when a Combobox, Lookup, or Radio contains errors in a form.
Known use cases
Describe known use cases for this component, including the project, team, and timeline
Design spec
Acceptance criteria (or Done)
Design
- Design the Figma spec sheets:
- Combobox
- Lookup
- Radio
- Update the components in the Codex Figma library. This step will be done by a DST member.
- Update the image and list of states in the Guidelines > Interaction states, including the error and error-hover states:
- Combobox
- Lookup
- Radio
- Update the Interaction States images in the Guidelines
Code
- Include the error states in the Codex components:
- Combobox - error and error-hover
- Lookup - error and error-hover
- Radio - error-default, error-hover, error-active, and error focus
- Add configurable demos that display the error states