Component states
Every interactive class hook in each state the themes style, in one grid, under the theme you chose. Use the theme picker in the header to compare themes.
How to read this page
- Rest, pressed, current, checked, invalid and disabled are set by attributes, so they are shown side by side.
- Hover and keyboard focus cannot be set by an attribute, so the controls are live: move the pointer over a control, then Tab to it. An effect shown on hover must be shown on focus too (hover and focus parity, WCAG 1.4.13); compare the two as you go.
- Invalid uses
aria-invalid="true", and the native:user-invalidstate appears after you type in the last field and leave it.
The grid
| Hook | Rest | Pressed, current or checked | Invalid | Disabled |
|---|---|---|---|---|
button | — | — | ||
toggle-button | — | |||
| Link in text | Read the guidance | Read the guidance | — | — |
action-link | Start now | — | — | — |
text-input | — | |||
checkbox-input | ||||
radio-input | ||||
select | — | |||
switch-button | — | |||
Disclosure (summary) | ClosedContent. | OpenContent. | — | — |
Related
- The component catalog, where each component documents its keyboard and ARIA contract.
- Theme contrast, the measured contrast of every text pair in every theme.