source: frontend/node_modules/eslint-plugin-jsx-a11y/docs/rules/aria-props.md

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 870 bytes
Line 
1# jsx-a11y/aria-props
2
3💼 This rule is enabled in the following configs: ☑️ `recommended`, 🔒 `strict`.
4
5<!-- end auto-generated rule header -->
6
7Elements cannot use an invalid ARIA attribute. This will fail if it finds an `aria-*` property that is not listed in [WAI-ARIA States and Properties spec](https://www.w3.org/WAI/PF/aria-1.1/states_and_properties).
8
9## Rule details
10
11This rule takes no arguments.
12
13### Succeed
14```jsx
15<!-- Good: Labeled using correctly spelled aria-labelledby -->
16<div id="address_label">Enter your address</div>
17<input aria-labelledby="address_label">
18```
19
20### Fail
21
22```jsx
23<!-- Bad: Labeled using incorrectly spelled aria-labeledby -->
24<div id="address_label">Enter your address</div>
25<input aria-labeledby="address_label">
26```
27
28## Accessibility guidelines
29- [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value)
Note: See TracBrowser for help on using the repository browser.