Icon button meets WCAG 2.2 level AA when used as described on these pages. It follows the Button pattern of the WAI-ARIA Authoring Practices.
Keyboard
| Key |
Action |
| Tab |
Moves focus to the button and opens its tooltip. |
| Enter or Space |
Runs the action. |
| Esc |
Closes the tooltip. |
- A native button with the Button focus ring, states and touch target.
- A tooltip that opens on hover and on keyboard focus and repeats the name.
- Copy button: a polite live region that says “Copied”; the icon change is not the only cue.
What your team does
- Give every icon button a name that says the action and the object when needed: “Delete mapping”. Write it once, in a tooltip set as the label (
relationship="label"); the trigger then points at it with aria-labelledby. Don’t also set aria-label, or the name is read twice.
- Use a label instead when the icon is not well known.
- Keep extra information out of the tooltip; it only repeats the name.
WCAG criteria
| Criterion |
Level |
How |
| 1.1.1 Non-text Content |
A |
Name from the tooltip (aria-labelledby) or aria-label; the icon is hidden |
| 2.5.8 Target Size (Minimum) |
AA |
24 px or more; 44 px on touch |
| 4.1.2 Name, Role, Value |
A |
Native button with a name |