Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color contrast does not meet WCAG standards #929

Open
Otto-AA opened this issue Apr 11, 2022 · 1 comment
Open

Color contrast does not meet WCAG standards #929

Otto-AA opened this issue Apr 11, 2022 · 1 comment

Comments

@Otto-AA
Copy link

Otto-AA commented Apr 11, 2022

I think the color contrast of the notifications should be improved.

Problem description

I've tested the default notifications on the demo page and checked with the Firefox developer tools how their contrast is rated:

  • Info: 3.42 (Does not meet WCAG standards for accessible text)
  • Success: 3.13 (Does not meet WCAG standards for accessible text)
  • Warning: 2.28 (Does not meet WCAG standards for accessible text)
  • Error: meets the standard

The suggested "minimum ratio" is 4.5, so I think at least this should be the goal (see here for more info). Personally, I also find the warning text hard to read, even without a visual impairment.

Suggestions

I'd suggest one of those:

  • change the color defaults to have a higher contrast
  • add a goodContrast option
@codergeek42
Copy link

I created PR 943 which could fix these info, success, and warning colors to have a minimum 4.5:1 contrast ratio. (I couldn't find an obvious way to link that patch/branch here, sorry.)

#943

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants