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.

26 lines
752 B

  1. # no-access-key
  2. Enforce no accessKey prop on element. Access keys are HTML attributes that allow web developers to assign keyboard shortcuts to elements. Inconsistencies between keyboard shortcuts and keyboard commands used by screenreader and keyboard only users create accessibility complications so to avoid complications, access keys should not be used.
  3. ### References
  4. 1. [WebAIM](http://webaim.org/techniques/keyboard/accesskey#spec)
  5. ## Rule details
  6. This rule takes no arguments.
  7. ### Succeed
  8. ```jsx
  9. <div />
  10. ```
  11. ### Fail
  12. ```jsx
  13. <div accessKey="h" />
  14. ```
  15. ## Accessibility guidelines
  16. General best practice (reference resources)
  17. ### Resources
  18. - [WebAIM, Keyboard Accessibility: Accesskey](http://webaim.org/techniques/keyboard/accesskey#spec)