-
Notifications
You must be signed in to change notification settings - Fork 363
Disabled button fails the contrast ratio test - should it? #205
Comments
@alice This is sort of related to what you were saying about placeholder text recently. Might be a good question for the web-a11y slack channel if you haven't already asked! |
"Text or images of text that are part of an inactive user interface component" are exempt from color contrast requirements. |
Thanks @stevefaulkner! @ricksbrown do you think it would work to just check for the |
@stevefaulkner thanks @alice Yep I think this will be pretty straightforward (I always think that before spending hours on one tiny little problem). The complicating factors to consider would be:
|
|
OK I'm happy to run with this (unless anyone else wants to). |
@ricksbrown works for me, go ahead and take it :) |
The default contrast ratio of disabled buttons (in Chrome and probably others) fails the low contrast tests.
I would argue that since the user does not / cannot interact with disabled elements they should be ignored for this (and perhaps other?) tests.
Another argument in favor of ignoring them is that if you style a disabled element to meet the contrast ratio audit then it will probably lose the
disabled
look and harm usability.The text was updated successfully, but these errors were encountered: