Button group meets WCAG 2.2 level AA when used as described on these pages.
Keyboard
| Key |
Action |
| Tab |
Moves through the buttons one by one. |
| Enter or Space |
Runs the focused button. |
role="group" around the buttons.
- The full focus ring of the focused button, above its neighbours.
What your team does
- Name a joined group with
aria-label.
- Give each icon-only button its own name.
- Use a toolbar, not a group, when there are many tools that need arrow keys.
WCAG criteria
| Criterion |
Level |
How |
| 1.3.1 Info and Relationships |
A |
role="group" with a name |
| 2.4.7 Focus Visible |
AA |
The ring shows whole above neighbours |