We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f27d22b + 0bdf95b commit 9dd3ce1Copy full SHA for 9dd3ce1
docs/rules/element-roles.md
docs/rules/prefer-tag-over-role.md
@@ -2,4 +2,31 @@
2
3
<!-- end auto-generated rule header -->
4
5
-TODO
+Enforces using semantic DOM elements over the ARIA `role` property.
6
+
7
+## Rule details
8
9
+This rule takes no arguments.
10
11
+### Succeed
12
13
+```jsx
14
+<div>...</div>
15
+<header>...</header>
16
+<img alt="" src="image.jpg" />
17
+```
18
19
+### Fail
20
21
22
+<div role="checkbox">
23
+<div role="img">
24
25
26
+## Accessibility guidelines
27
28
+- [WAI-ARIA Roles model](https://www.w3.org/TR/wai-aria-1.0/roles)
29
30
+### Resources
31
32
+- [MDN WAI-ARIA Roles](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles)
0 commit comments