Skip to main content

no-default-aria-value

Warns when an ARIA property is explicitly set to its spec-defined default value.

❌ Examples of incorrect code for this rule

<div role="button" aria-expanded="undefined"></div>

✅ Examples of correct code for this rule

<div role="button" aria-expanded="true"></div>

Interface

{
"no-default-aria-value": boolean
}

Default Severity

warning