Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

react a11y props Rule

t-ligu edited this page Sep 20, 2016 · 1 revision

react-a11y-props

Enforce all aria-* attributes are valid. Elements cannot use an invalid aria-* attribute. This rule will fail if it finds an aria-* attribute that is not listed in WAI-ARIA states and properties.

Rule options

This rule takes no arguments.

Examples

Bad

// Using incorrectly spelled aria-labeledby.
<label id='address-label'>Enter your address</label>
<input aria-labeledby='address-label' />

Good

<input type='text' />
<label id='address-label'>Enter your address</label>
<input aria-labelledby='address-label' />