Skip to main content
Checks that ARIA attributes are allowed on their elements
Rule IDa11y/aria-allowed-attr
CategoryAccessibility
ScopePer-page
Severitywarning
Weight6/10

Solution

Some ARIA attributes are not appropriate for certain roles or elements. For example, role=‘presentation’ should not have aria-label since it removes semantic meaning. Remove conflicting attributes or reconsider the element’s role.

Enable / Disable

Disable this rule

squirrel.toml
[rules]
disable = ["a11y/aria-allowed-attr"]

Disable all Accessibility rules

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

Enable only this rule

squirrel.toml
[rules]
enable = ["a11y/aria-allowed-attr"]
disable = ["*"]