Item meets WCAG 2.2 level AA when used as described on these pages.
Keyboard
| Key |
Action |
| Tab |
Moves to the item when it is a link, then to each button in ItemActions. |
| Enter |
Follows an item link. |
What Item gives you
ItemGroup has role="list".
- An item rendered as a link shows the focus ring (
color.border.focus, 2 px, 2 px away) on keyboard focus.
- Title and description text at least 7:1 (D4).
What your team does
- Give each
Item in an ItemGroup role="listitem".
- Don’t put buttons inside an item that is itself a link: a link can’t hold other controls. Use a link on the title instead.
- Mark decorative media
aria-hidden="true"; give an image that says something an alt.
- Name buttons with their item: “Settings for Online store” when several items have a Settings button, using a visually hidden span or
aria-label.
WCAG criteria
| Criterion |
Level |
How |
| 1.3.1 Info and Relationships |
A |
List roles |
| 1.4.3 Contrast (Minimum) |
AA |
Text at least 7:1 |
| 2.4.4 Link Purpose (In Context) |
A |
The item’s title names the link |
| 2.4.7 Focus Visible |
AA |
Focus ring on linked items |