Update 05-accessibility-warnings.md

reorder a11y warnings
pull/7778/head
Tan Li Hau 2 years ago committed by GitHub
parent dc83d0b30d
commit 012d639b42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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.
@ -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.

Loading…
Cancel
Save