Disabled Controls Contrast Test Page

This page contains disabled controls and a toggle to change the contrast ratio of the labels and other text associated with those controls in order, primarily, to test the assumptions the axe-core accessiblity testing library makes about text contrast requirements for disabled controls. (Of course, it could be used for testing other similar tools and libraries as well.)

The default behavior in all modern browsers is to reduce the contrast of disabled controls. Labels and other associated text are unaffected when the control is given the disabled attribute. Only the values of HTML button elements, the value, placeholder, and default iconography of input elements, and the options and default iconography for select elements are affected by the disabled attribute.

Disabled Controls

1. Standard HTML Disabled Button

2. Standard HTML Disabled Text Input with Value (for-id associated label and aria-describedby associated description)


This is helper text associated via aria-describedby

3. Standard HTML Disabled Text Input with Value (label wrapping input and aria-describedby associated description)

4. Standard HTML Disabled Text Input with Placeholder (for-id label)


5. Standard HTML Disabled Text Input with Placeholder (wrapped label)

6. Standard HTML Disabled Checkbox

7. Standard HTML Disabled Radio Group (disabled set on fieldset)

Disabled Radio Group Legend

8. Standard HTML Disabled Select (for-id label)


9. Standard HTML Disabled Select (wrapped label)

10. ARIA Disabled Button (role=button on a div)

ARIA Disabled Button

11. ARIA Disabled Textbox (role=textbox on a div)

Label for ARIA Disabled Textbox
ARIA Disabled Textbox Content

12. Standard HTML Disabled Text Input (aria-labelledby with label element)

This is helper text associated via aria-describedby

13. ARIA Disabled Combobox (role=combobox on an input set to readonly)

This is helper text for the combobox associated via aria-describedby

14. Standard HTML Disabled Textarea (for-id label and aria-errormessage)


This is an error message associated via aria-errormessage

15. ARIA Disabled Tab (tab in tablist set to aria-disabled="true" and tabpanel associated via aria-controls)

This is the content of the disabled tab panel. The tab above is both selected and disabled using aria-selected="true" and aria-disabled="true".