Skip to content

[Form controls] Better indicators for invalid state #2017

@cchaos

Description

@cchaos

At the moment, we just add a red underline. Let's consider adding an icon on the right side of the input as well. This is best for accessibility for those with color-blindness that find it hard to detect the difference between blue and red.

Also, we keep running into issues where the focused state (blue line) overrides the invalid state making it unclear that certain (mostly number) inputs are invalid as the user types.

Guidelines Example:

image


Components to update:

  • EuiFieldNumber
  • EuiFieldPassword
  • EuiFieldSearch
  • EuiFieldText
  • EuiFilePicker
  • EuiSelect
  • EuiSuperSelect
  • EuiTextarea
  • EuiComboBox
  • EuiDatePicker
  • EuiDatePickerRange
  • EuiSuperDatePicker
  • EuiRange/EuiDualRange

Metadata

Metadata

Assignees

Type

No type
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