ARIA Allowed Attributes
Checks that ARIA attributes are allowed on their elements
Checks that ARIA attributes are allowed on their elements
| Rule ID | a11y/aria-allowed-attr |
| Category | Accessibility |
| Scope | Per-page |
| Severity | warning |
| Weight | 6/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
toml[rules]
disable = ["a11y/aria-allowed-attr"]Disable all Accessibility rules
squirrel.toml
toml[rules]
disable = ["a11y/*"]Enable only this rule
squirrel.toml
toml[rules]
enable = ["a11y/aria-allowed-attr"]
disable = ["*"]