Skip to content

Commit 012d639

Browse files
authored
Update 05-accessibility-warnings.md
reorder a11y warnings
1 parent dc83d0b commit 012d639

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

site/content/docs/05-accessibility-warnings.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,6 @@ The following elements are visually distracting: `<marquee>` and `<blink>`.
5454

5555
---
5656

57-
### `role-has-required-aria-props`
58-
59-
Elements with ARIA roles must have all required attributes for that role.
60-
61-
```sv
62-
<!-- A11y: A11y: Elements with the ARIA role "checkbox" must have the following attributes defined: "aria-checked" -->
63-
<span role="checkbox" aria-labelledby="foo" tabindex="0"></span>
64-
```
65-
66-
---
67-
6857
### `a11y-hidden`
6958

7059
Certain DOM elements are useful for screen reader navigation and should not be hidden.
@@ -272,6 +261,17 @@ Avoid positive `tabindex` property values. This will move elements out of the ex
272261

273262
---
274263

264+
### `a11y-role-has-required-aria-props`
265+
266+
Elements with ARIA roles must have all required attributes for that role.
267+
268+
```sv
269+
<!-- A11y: A11y: Elements with the ARIA role "checkbox" must have the following attributes defined: "aria-checked" -->
270+
<span role="checkbox" aria-labelledby="foo" tabindex="0"></span>
271+
```
272+
273+
---
274+
275275
### `a11y-structure`
276276

277277
Enforce that certain DOM elements have the correct structure.

0 commit comments

Comments
 (0)