"This color combination causes mild problems for 15% of people and severe problems for 5%. Consider X and Y to reduce impact to 3%"
I've heard of some ways to visualize this with SVG filters - so this will be coming soon.
Still thinking of creative ways to find and label the errors, rather than just showing the user how the page will look under a certain type of color-blindess.
So it is complaining that we have a link (A tag) with an image within it. The image has an alt tag. But the addon is claiming the A tag is "empty" and that I should add "screen reader text."
Some googling around suggests that adding "screen reader text" is unreliable since many unrendered texts aren't rendered by screen readers either, and on top of that it can cause element positioning issues.
So why is the alt text unacceptable "text" for within an A tag for when the image isn't rendered? Isn't that the entire point of the alt tag, to provide text for a non-rendered image?
This is a known bug (https://github.com/Khan/tota11y/issues/1) that comes from upstream (https://github.com/GoogleChrome/accessibility-developer-tool...) and will hopefully be fixed soon.
As for your notes on screen-reader text: you can "hide" it by not actually hiding it, but placing it off the side of the page. This will be picked up by screen-readers and will not cause any positioning issues.
We use the following snippet all over Khan Academy. Bootstrap 3 uses it as well.
.sr-only {
border: 0;
clip: rect(0,0,0,0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
}
So I'd like to assure you that your image link is good to go (assuming the alt-text is good!). Sorry for the troubles.http://www.color-blindness.com/2008/10/02/color-blindness-si...
If you want to test this on your own, http://colororacle.org/ acts as a screen overlay so you can load any sort of application, web page, etc. and hit a hot-key to see what it looks like with each of the different types of color blindness.
http://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contr...
So if you pass WCAG color contrast checks, you'll be accessible to users with color deficiency as well as low vision.
https://github.com/Khan/tota11y/blob/952427485a49bde0f498e9d...
https://github.com/GoogleChrome/accessibility-developer-tool...
Definitely a good feature request