Accessibility · SU-140
Every icon button has a name
Flip between the version shibroUI flags and the one it ships. The marks and callouts show what changes.
-
What a screen reader hears
“button, button, button”
-
What a screen reader hears
“Delete invoice, button”
Invoice INV-2041
Northstar Studio · $1,500
SCREEN READER
button · button · button
Invoice INV-2041
Northstar Studio · $1,500
SCREEN READER
Edit invoice, button · Duplicate invoice, button · Delete invoice, button
-
Accessible name
(empty) × 3
-
Accessible name
aria-label="Delete invoice"
What changes
- Bad
- Three icon buttons with no accessible name, so a screen reader says “button, button, button” and none of them can be told apart.
audit.js: SU-140 fail: button has no accessible name (3 instances) - Good
- Each icon button carries an
aria-label, so the reader announces “Edit invoice”, “Duplicate invoice” and “Delete invoice”.
The rules
-
SU-140
Every control has a name that contains its label. Every button, link and widget has an accessible name. Icon-only buttons get
aria-label.