Skip to content

Field: Add error state to field controls #25023

Description

@behowell

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)

Example of an Input with a red border

Proposed solution

  • Add a new prop invalid to each control that needs it, and have it render a red border when invalid is set.
  • Update Field to handle the control's invalid prop as a synonym for validationState="error":
    • Have Field set invalid on the control when validationState="error"
    • Have Field default validationState="error" if invalid is set on the control.

Updates needed

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions