web 3d图形渲染器
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.

27 lines
786 B

  1. # role-has-required-aria-props
  2. Elements with ARIA roles must have all required attributes for that role.
  3. ## Rule details
  4. This rule takes no arguments.
  5. ### Succeed
  6. ```jsx
  7. <!-- Good: the checkbox role requires the aria-checked state -->
  8. <span role="checkbox" aria-checked="false" aria-labelledby="foo" tabindex="0"></span>
  9. ```
  10. ### Fail
  11. ```jsx
  12. <!-- Bad: the checkbox role requires the aria-checked state -->
  13. <span role="checkbox" aria-labelledby="foo" tabindex="0"></span>
  14. ```
  15. ## Accessibility guidelines
  16. - [WCAG 4.1.2](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value)
  17. ### Resources
  18. - [ARIA Spec, Roles](https://www.w3.org/TR/wai-aria/#roles)
  19. - [Chrome Audit Rules, AX_ARIA_03](https://github.com/GoogleChrome/accessibility-developer-tools/wiki/Audit-Rules#ax_aria_03)