Add role-supports-aria-props to accessibility warnings doc

pull/8195/head
Nguyen Tran 4 years ago
parent 26ae9fd2e1
commit 59ce478e49

@ -296,6 +296,20 @@ Elements with ARIA roles must have all required attributes for that role.
--- ---
### `a11y-role-supports-aria-props`
Elements with explicit or implicit roles defined contain only `aria-*` properties supported by that role.
```sv
<!-- A11y: The attribute 'aria-multiline' is not supported by the role 'link'. -->
<div role="link" aria-multiline />
<!-- A11y: The attribute 'aria-required' is not supported by the role 'listitem'. This role is implicit on the element <li>. -->
<li aria-required />
```
---
### `a11y-structure` ### `a11y-structure`
Enforce that certain DOM elements have the correct structure. Enforce that certain DOM elements have the correct structure.

Loading…
Cancel
Save