-
Notifications
You must be signed in to change notification settings - Fork 279
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
Does not count gradient as a background color #5
Comments
There is no feasible way to check for the gradient programmatically, but the color error should still be valid because it falls under the same category as having an image there.
Would be nice to communicate this to the user, though. Perhaps check for background-image and modify the error message to include the info I just wrote above? |
Oh. I forgot to mention. If you look at the css it does have an explicit But yeah if you can't check for the gradient colors, at least a check for
|
Oh, my mistake, you're absolutely right. Checking either end of the gradient is probably the best we can do. |
I went ahead and filed the first bit - descriptive error messages for background images - as its own issue in #6. |
GoogleChrome/accessibility-developer-tools#79 May need to leave it up to them. |
Css for the button (it's a
<a>
):tota11y's reaction
I don't know if you have a "warning" type. But, as this is kind of hard to know programatically, maybe cases like this should check all colors used in the gradient, then, if only some of those colors are below contrast ratio you should get a warning.
Don't know if it matters, but
linear-gradient
might actually be defined asbackground-image
:The text was updated successfully, but these errors were encountered: