Overview
Interactive elements (buttons, inputs, landmarks) must have an accessible name so assistive technology can announce what they do.
WCAG Criterion:4.1.2
Conformance Level:Level A
Difficulty:Easy
Time to fix:~5 min
Category:ARIA
The Problem
This pattern is inaccessible — avoid it.
The Fix
Use this accessible pattern instead.
Step-by-step
Every icon-only button must have aria-label or aria-labelledby.
Dialogs/modals need aria-labelledby pointing to the visible heading.
When there are multiple <nav> landmarks, give each an aria-label.
Add aria-hidden="true" to decorative SVGs/icons so screen readers skip them.
Framework Notes
How to apply this fix in your stack.