Skip to content

Commit

Permalink
Update 05-accessibility-warnings.md
Browse files Browse the repository at this point in the history
reorder a11y warnings
  • Loading branch information
tanhauhau committed Aug 8, 2022
1 parent dc83d0b commit 012d639
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions site/content/docs/05-accessibility-warnings.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,6 @@ The following elements are visually distracting: `<marquee>` and `<blink>`.

---

### `role-has-required-aria-props`

Elements with ARIA roles must have all required attributes for that role.

```sv
<!-- A11y: A11y: Elements with the ARIA role "checkbox" must have the following attributes defined: "aria-checked" -->
<span role="checkbox" aria-labelledby="foo" tabindex="0"></span>
```

---

### `a11y-hidden`

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

---

### `a11y-role-has-required-aria-props`

Elements with ARIA roles must have all required attributes for that role.

```sv
<!-- A11y: A11y: Elements with the ARIA role "checkbox" must have the following attributes defined: "aria-checked" -->
<span role="checkbox" aria-labelledby="foo" tabindex="0"></span>
```

---

### `a11y-structure`

Enforce that certain DOM elements have the correct structure.
Expand Down

0 comments on commit 012d639

Please sign in to comment.