Need clarification on Success Criterion's 1.4.1: Use of Color and Success Criterion 1.4.11: Non-text Contrast #2766
Replies: 3 comments 9 replies
-
The difference in status between selected and non-selected (black, blue) has sufficient contrasts to satisfy 1.4.1 (more than 3:1). However, it is better not to rely on color differences, even if the contrast is greater than 3:1. This is because color differences are no longer visible when using User Styles or Windows High Contrast Mode. It would be better to mark the active tab/button with another visual means, e.g. with an underline |
Beta Was this translation helpful? Give feedback.
-
The background colors do not need to be checked because the text colors have sufficient contrasts between them. If the text colors did not change, the contrast ratio of the background colors among each other would have to be at least 3:1. It would be advisable if the tabs or buttons were given a frame or a dark background so that they are better recognized as controls. The background is so bright that it may not be recognized. However, 1.4.11 requires a frame only if the element is not otherwise recognizable. That is not the case here. |
Beta Was this translation helpful? Give feedback.
-
I would fail this UI pattern against 1.4.1. There is very little contrast between unselected background grey and selected background pale blue. That leaves the work of conveying selected/unselected status to the black versus dark blue text, with a contrast ratio of just 3.5:1 which is not enough for text (4.5:1 minimum, and even that's not really enough given the context). I would ask for "selected" to use a bold or italic font, but even better would be inversing to light-on-dark. |
Beta Was this translation helpful? Give feedback.
-
Hello WCAG Community,
I have a question related to the Success Criterion's 1.4.1: Use of Color and Success Criterion 1.4.11: Non-text Contrast
When I select any of the tabs(All, Local pickup, Shipping), the tab text color changes from black to blue, and also the Inner background color also changes.
Not selected tab text color(black: #0C0E10)
Selected tab text color:(Blue: #3A688A)
Contrast ratio: 3.3:1
Since it is more than 3;1, can we consider it as the pass for Use of Color Success Criterion?
if it is less than 3:1, can we consider it a failure for Use of Color Success Criterion?
If the text color changes along with the inner background color, in that case, Are we supposed to check the Selected tab Inner background with the outer background for 1.4.11: Non-text Contrast as well?
Beta Was this translation helpful? Give feedback.
All reactions