Skip to main content
Checks that tooltip elements have accessible names
Rule IDa11y/aria-tooltip-name
CategoryAccessibility
ScopePer-page
Severityerror
Weight7/10

Solution

Tooltip elements with role=‘tooltip’ must have accessible content. The tooltip content serves as its accessible name. Ensure tooltips have text content or use aria-label for icon-based tooltips.

Enable / Disable

Disable this rule

squirrel.toml
[rules]
disable = ["a11y/aria-tooltip-name"]

Disable all Accessibility rules

squirrel.toml
[rules]
disable = ["a11y/*"]

Enable only this rule

squirrel.toml
[rules]
enable = ["a11y/aria-tooltip-name"]
disable = ["*"]