Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mka8 authored and kwangure committed Dec 2, 2021
1 parent e7763ae commit b89e8c0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions site/content/docs/05-accessibility-warnings.md
Expand Up @@ -87,6 +87,18 @@ Enforce img alt attribute does not contain the word image, picture, or photo. Sc

---

### `a11y-incorrect-aria-attribute-type`

Enforce that only the correct type of value is used for aria attributes. For example, `aria-hidden`
should only receive a boolean or `undefined`.

```sv
<!-- A11y: The value of 'aria-hidden' must be exactly one of true, false, or undefined -->
<div aria-hidden="yes"/>
```

---

### `a11y-invalid-attribute`

Enforce that attributes important for accessibility have a valid value. For example, `href` should not be empty, `'#'`, or `javascript:`.
Expand Down

0 comments on commit b89e8c0

Please sign in to comment.