You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

role-has-required-aria-props.md 651 B

преди 3 години
123456789101112131415161718192021222324
  1. # role-has-required-aria-props
  2. Elements with ARIA roles must have all required attributes for that role.
  3. #### References
  4. 1. [Spec](https://www.w3.org/TR/wai-aria/roles)
  5. 2. [AX_ARIA_03](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_03)
  6. ## Rule details
  7. This rule takes no arguments.
  8. ### Succeed
  9. ```jsx
  10. <!-- Good: the checkbox role requires the aria-checked state -->
  11. <span role="checkbox" aria-checked="false" aria-labelledby="foo" tabindex="0"></span>
  12. ```
  13. ### Fail
  14. ```jsx
  15. <!-- Bad: the checkbox role requires the aria-checked state -->
  16. <span role="checkbox" aria-labelledby="foo" tabindex="0"></span>
  17. ```