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
[rules]
disable = ["a11y/aria-allowed-attr"]
Disable all Accessibility rules
[rules]
disable = ["a11y/*"]
Enable only this rule
[rules]
enable = ["a11y/aria-allowed-attr"]
disable = ["*"]