You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tkajtoch
changed the title
Input borders should meet the contrast ratio guidelines
Input borders should meet the WCAG AA contrast ratio requirements
Feb 5, 2024
Worth noting: the password component is dark enough to pass the contrast check - why is it a one-off?
I noticed that this is true when the dual, or preppend or append parameters are set to true. It seems that this happens because the background of these added elements use a lighter gray (which is the same as the field's border)
Describe the problem
According to the recent kibana issue EUI input fields borders have contrast ratios below 3:1 and don't meet the WCAG AA contrast ratio requirement.
The same may apply to other components like
EuiTextField
,EuiSearchField
,EuiSelect
, and more.To Reproduce
Go to https://eui.elastic.co/#/forms/form-controls#text-field and measure
EuiTextField
border contrast ratio.Environment
Proposed solution
Increase affected components' border contrast ratios to 3:1 or above.
Screenshots or Trace Logs
The text was updated successfully, but these errors were encountered: