Replies: 6 comments
-
1.4.11 can't compare "the color that a thing was before with the color that a thing is now", as it's only concerned with adjacent pixels. this sort of question is more relevant for 1.4.1 Use of Color. and under that light, that hover color only serves as a bit of eye-candy. it's not essential, and doesn't convey any actual meaning/content. |
Beta Was this translation helpful? Give feedback.
-
@patrickhlauke Thank you for your response. Thanks |
Beta Was this translation helpful? Give feedback.
-
ah, sorry, I somehow misunderstood your initial question and thought you meant the contrast between the unhovered and hovered background colours. looking at your actual question now, it's still not a failure of 1.4.11 - the button's background doesn't necessarily need to have contrast of 3:1 or higher against the white page background, if there are other hints (including position/context) that convey that it's a button. in this case, even if I couldn't see the button's background at all, that drop shadow, and the overall spacing etc around the label on the button, still gives me strong indication that it's a control of sorts, so the background colour there is not necessary for me to identify this ... and hence, not subject to 1.4.11 (as an aside - wondering why you were just worried about the hovered state, since the background of that button in its default state has even lower contrast against the white of the page? again, not a failure for the above reason, but just curious) |
Beta Was this translation helpful? Give feedback.
-
@patrickhlauke Thank you The development team has brought up the question about whether SC 1.4.11 applies to hover state. This led to differing opinions within our Web accessibility testing team regarding whether a failure should be raised if the hover state doesn't meet the minimum 3:1 color contrast ratio. We want to ensure our interpretation aligns and that we're all on the same page. Additionally, I have another scenario related to this topic. When hovering over icon buttons that don't meet the required ratio of at least 3:1, it could be considered a failure of the success criterion at hover state. For instance, the visual information necessary to understand the button's purpose might not be clear for some users. For example, |
Beta Was this translation helpful? Give feedback.
-
Well yes, that second scenario is a clear failure |
Beta Was this translation helpful? Give feedback.
-
@patrickhlauke Thank you again. Whether SC 1.4.11 applies to a control's hover state depends on context and the need for visual cues to understand its purpose.
|
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a question on the visual change apply to a button on hover state and the SC 1.4.11. For example, the background colour within the button changes to #cfd1d5 when hovering over. Which doesn't meet the contrast ratio of at least 3:1 with its background #FFFFFF for non-text contrast on hover state. Does this fail the sc 1.4.11 as the button doesn't meet the contrast ratio 3:1 on hover state?
btn-default:hover { color: #335075; background-color: #cfd1d5; }
Beta Was this translation helpful? Give feedback.
All reactions