Categories
HTML Accessibility
disabled and obscured
The WCAG success criterion 1.4.3: Contrast (Minimum) requires that:
The visual presentation of text and images of text has a contrast ratio of at least 4.5:1
There are several exceptions to this rule, including:
Text or images of text that are part of an inactive user interface component
Which means in HTML that interactive elements with a disabled attribute are exempt.
So, for example, the text label for a button with a disabled attribute is not required to be legible.
<button disabled>help I’m a rock</button>
My personal take on this is it sucks as while the control is disabled for all, only for a subset of users (low vision) the text label for the disabled control is illegible.
The other property of disabled controls that causes consternation are that they are not included in the focus order. Explicit addition of tabindex=”0″ makes no difference.
Be that as they may, these properties (poor contrast and not being focusable) were built into the default characteristics of disabled controls on the web as rendered in browsers. So it is understandable [...]