Skip to main content

aria-prop-requires-role

Warns when a non-global ARIA property is used on an element without an explicit role.

❌ Examples of incorrect code for this rule

<div aria-pressed="true"></div>

✅ Examples of correct code for this rule

<div aria-label="text"></div>

Interface

{
"aria-prop-requires-role": boolean
}

Default Severity

error