-
Notifications
You must be signed in to change notification settings - Fork 269
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
G195 - Test procedure #6 conflicts with test results #1586
Comments
Trying to advise developers against implementations like a yellow border against a white background.
|
@chlane currently the draft of SC 2.4.11 allows for size changes of 2px to indicate focused state without requiring any minimum contrast to adjacent pixels. |
@mraccess77 Hey Jon ;). I think that clears it up. The current language does not say that the size needs to change by 2px, it says "check that it is at least 2px thick". If it could be changed to "check that it is at least 2px thicker than the original size" that would solve our problem of developers wanting to provide low contrast 2px borders. IMO, it should not simply change by 2px but it should increase by 2px. |
If you were to use a 2px wide focus indicator that was not thicker than the control -say inset - then the clause "Color changes used to indicate focus have at least a 3:1 contrast ratio with the colors changed from the unfocused control." would seem to kick in requiring contrast with the previous state. I am fully aware that in reality it is difficult for users to compare both states especially in magnified areas where you might only have one control in the viewport. So there certainly are ways to game the criteria. |
@mraccess77 thanks Jon, is there anything we can do to prevent gaming the criteria like add some language or even a comment here in this bug? Simply having a 2px wide focus indicator whether it is inset or outset should not negate the need for a 3:1 contrast ratio against the color behind the focus indicator. |
Hi @chlane opening up a specific issue for this item in Github that is not related to a technique is probably the best way to get a direct response to the specific situation related to the SC wording. Since this topic has been discussed before there is a possibility that it may not be addressed in the SC but could be addressed in other places including encouraging people to go beyond the requirements in the understanding documentation. |
@mraccess77 Thanks Jon, I created a specific issue and referenced this one. |
Looking at the last two points in the procedure:
I think what is being missed is that 5 is talking about change of contrast, and 6 is talking about adjacent contrast. Yellow on white would fail (the new SC's) change of contrast, regardless of thickness or adjacent contrast. To be fair, in WCAG 2.1 it is non-text contrast that it is failing, not focus-visible, we should clarify that technique in 2.1 materials. |
Hi @alastc I think you are right, adjacency is not being considered as it should be. This means there is no problem with the verbiage, just misunderstanding on our end. Thanks for the help. |
The test procedure currently reads:
It is super hard to follow because the important parts are in the middle of long similar looking sentences. And check number 5 has two checks in it (check for contrast, then check for thickness). I propose the following rewrite: TestsProcedure
Expected ResultsChecks # 2, # 3, # 4, and either # 5.1 or # 5.2 are true. Notes: I think this test checks for high visibility, so checking for highly visible focus indicator in step 2 is recursive checking, but I might miss something. I also added non-breaking space between the |
Under the Test Procedure heading for G195 , step #6 "If the focus indicator does not have 3:1 contrast ratio with its adjacent colors, check that it is at least 2px thick" negates #5 because it allows for a border to be low contrast as long as it is 2px thick.
While the Expected Results text below addresses this
Expected Results
Checks #2, #4, #5 and #6 are true.
People are using this text to argue that they do not have to provide a 3:1 contrast ratio for focus indication as long as it has a 2px border.
The text was updated successfully, but these errors were encountered: