shibro
Show the version of “Every icon button has a name”

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”
  • 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.