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

form validation state colors not colorblind-friendly #14744

Closed
jlguenego opened this issue Oct 7, 2014 · 13 comments
Closed

form validation state colors not colorblind-friendly #14744

jlguenego opened this issue Oct 7, 2014 · 13 comments
Labels

Comments

@jlguenego
Copy link

On the following demo url (http://getbootstrap.com/css/#forms-control-validation) colorblind people cannot easily see the difference between error/warning/success color.
My suggestion would be to choose more saturated colors like for instance:
success: #00B900
warning: #E1B500
error: #FF0000

Thanks for thinking to the accessibility of bootstrap.

@cvrebert
Copy link
Collaborator

cvrebert commented Oct 7, 2014

Probably it would be better for those concerned about colorblindness accessibility to use the version with icons that's shown in the next section? The meaning of the icons is fairly clear even without color. (Which isn't to say that we'd necessarily oppose improving the color scheme)

@cvrebert cvrebert added the css label Oct 7, 2014
@jlguenego
Copy link
Author

Indeed, using the icons is a good alternative approach.
But improving the color scheme would be definitively better for the colorblind user experience. Thanks.

@cvrebert
Copy link
Collaborator

cvrebert commented Oct 7, 2014

If possible, a simple live example demonstrating the proposed new color scheme would be helpful.

@devanddesign
Copy link

I'm not even colorblind and I can barely tell the difference in the colors. I always manually change them in my own implementations to something brighter.

@jlguenego
Copy link
Author

@cvrebert We are working on a "colorblind color scheme". I come back with something tomorrow.

@jlguenego
Copy link
Author

Here is a live example of a proposed new color scheme.
http://plnkr.co/4t5kBETBAxZAXWhF9of4

@cvrebert
Copy link
Collaborator

cvrebert commented Oct 8, 2014

Does that come close to the minimum contrast level recommended by http://www.w3.org/TR/WCAG20/#visual-audio-contrast-contrast ?

@cvrebert
Copy link
Collaborator

cvrebert commented Oct 8, 2014

X-Ref: #11605.

@cvrebert
Copy link
Collaborator

cvrebert commented Oct 8, 2014

CC: @masterbee of #11432

@cvrebert cvrebert changed the title colorblind people cannot see error/warning/success color for input form form validation state colors not colorblind-friendly Oct 8, 2014
@cvrebert
Copy link
Collaborator

cvrebert commented Oct 8, 2014

  • Contrast ratio of proposed #21DF17 green-on-white: 1.81
  • Contrast ratio of proposed #FFCC00 yellow-on-white: 1.51
  • Contrast ratio of proposed #FF330F red-on-white: 3.66

So with regard to the WCAG 2 AA contrast recommendation, none of the proposed colors satisfy the general minimum contrast ratio of 4.5 (as calculated by this tool), although the green meets the looser 3.0 minimum ratio that applies only to "large-scale" text.

@jlguenego
Copy link
Author

True. Checked and confirmed on http://webaim.org/resources/contrastchecker/.

Unfortunately following the WCAG (AA or AAA) regarding the color contrast cannot satisfy colorblind (and even normal) people with the actual situation.

Therefore we have modified the plunker with 2 new proposals:

  1. same as before with maximum satisfying contrast. (some contrast have been increased, but without reaching the WCAG minimum recommanded).
  2. new one with background color in the field to indicate the status (success, warning, error). This one complies with WCAG AAA.
    I think this is the best we can do for colorblindness.
    Thanks.
    Plunker updated (same url: http://plnkr.co/4t5kBETBAxZAXWhF9of4)

@mdo
Copy link
Member

mdo commented Oct 8, 2014

Changing these values for v3 isn't going to happen—it's quite a stark change for folks who simply want to upgrade to the latest. v4's colors can and will be changing though, so we can revisit then.

@cvrebert
Copy link
Collaborator

X-Ref: #54.

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

No branches or pull requests

4 participants