-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Labels
Description
Text entry controls like Input and ComboBox need to have a red border when they are in a Field that has an error state. The proposal is to add a validationState prop (to match the Field's validationState)
Proposed solution
- Add a new prop
invalidto each control that needs it, and have it render a red border wheninvalidis set. - Update Field to handle the control's
invalidprop as a synonym forvalidationState="error":- Have Field set
invalidon the control whenvalidationState="error" - Have Field default
validationState="error"ifinvalidis set on the control.
- Have Field set
Updates needed
- feat: Add red border to form controls when aria-invalid is set #25252
- Input
- SpinButton
- Textarea
- Combobox
- Dropdown
- Select
- feat: Add validationState to Progress, to make the bar red or green #25253
- Progress
Reactions are currently unavailable
