squirrelscan
GitHub

ARIA Valid Roles

Checks for valid ARIA role values

Checks for valid ARIA role values

Rule ID a11y/aria-roles
Category Accessibility
Scope Per-page
Severity error
Weight 8/10

Solution

Use only valid ARIA role values as defined in the WAI-ARIA specification. Common mistakes include using made-up roles or misspelling valid roles. Roles are case-sensitive and must be lowercase. Multiple roles can be specified, separated by spaces, but the first valid role is used.

Enable / Disable

Disable this rule

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

Disable all Accessibility rules

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

Enable only this rule

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

Type to search…

↑↓ navigate↵ openesc close