Skip to content

roleRequiredAriaProps

Reports ARIA roles missing their required ARIA properties.

✅ This rule is included in the jsx logical preset.

ARIA roles define how elements are exposed to assistive technologies like screen readers. Some roles require specific ARIA properties to function correctly and provide meaningful information to users. Omitting these required properties can result in incomplete or confusing experiences for users of assistive technologies.

<div role="checkbox" />
<div role="slider" aria-valuenow="5" />
<span role="combobox" />
<div role="heading" />

If you are using a custom framework that populates valid ARIA property roles for you, you might not need this rule.

Made with ❤️‍🔥 in Boston by Josh Goldberg and contributors.