Skip to main content

wai-aria-no-global-prop

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

This rule is part of the wai-aria rule family, split for granular severity control.

❌ 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

{
"wai-aria-no-global-prop": boolean
}

Default Severity

error