-
Notifications
You must be signed in to change notification settings - Fork 70
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 [afw4f7, 09o5cg] should not apply to aria-disabled
non-link a
elements
#2215
Comments
Talked this over iN CG. i think we came to two conclusions:
|
Adding the clarification: An |
Some notes on what I said during the meeting:
|
It seems to me that Wilco's conclusion 1 says "fix the rule" and conclusion 2 says "fix the code". These seem like mutually exclusive options to me. |
CG discussion: we've also spotted that the last assumption/definition of "disabled" gets a bit wonky (notably Inapplicable Example 9 doesn't match this assumption). Decision:
|
Text has minimum contrast and the similar "enhanced contrast" rule has exceptions to Applicability for "inheriting semantic
group
orwidget
that is disabled".I've seen an actual page, part of a dictionary with links for each letter, looking like:
because there is no entry starting with "X" in that dictionary.
Now, the "X" text has bad contrast, it has an
aria-disabled
ancestor, which is matching our disabled definition (second condition: The element has a shadow-including ancestor whose aria-disabled attribute value is “true”.)But, since the
<a>
element has nohref
attribute, it is no alink
: HTML AAM, thus not awidget
, and its text is excluded from the exception, i.e. applicable to the rule which flags it as bad contrast.I think that in a case like that, the text should be part of the exception. It is, pretty much, "part of an inactive user interface component" to put it in WCAG terms.
I think we should be a bit conservative and only extend the exception to "
a
andarea
elements with nohref
andaria-disabled="true"
", rather than, say, to anything witharia-disabled="true"
.The text was updated successfully, but these errors were encountered: