squirrelscan
GitHub

ARIA Labels

Checks that interactive elements have accessible names

Checks that interactive elements have accessible names

Rule ID a11y/aria-labels
Category Accessibility
Scope Per-page
Severity error
Weight 6/10

Solution

All interactive elements (buttons, links, inputs) need accessible names for screen readers. Use: visible text content, aria-label for icon-only buttons, aria-labelledby to reference existing text, or the title attribute as a fallback. Icon buttons especially need aria-label: <button aria-label='Close'>×</button>. Test with a screen reader or browser accessibility inspector.

Enable / Disable

Disable this rule

[rules]
disable = ["a11y/aria-labels"]

Disable all Accessibility rules

[rules]
disable = ["a11y/*"]

Enable only this rule

[rules]
enable = ["a11y/aria-labels"]
disable = ["*"]

Type to search…

↑↓ navigate↵ openesc close