This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
new a11y rule: mouse-events-have-key-events #279
Labels
Difficulty: Medium
People with non-trivial experience in TSLint should be able to send a pull request for this issue.
Domain: Accessibility
Rules around accessibility verification, commonly react-a11y-*.
Status: Accepting PRs
Type: Rule Suggestion
Adding a new rule that doesn't yet exist here or in TSLint core.
Milestone
mouse-events-have-key-events
Enforce that onMouseOver/onMouseOut are accompanied by onFocus/onBlur for keyboard-only users.
• http://oaa-accessibility.org/wcag20/rule/59/
• http://oaa-accessibility.org/wcag20/rule/60/
onmousedown, onmouseup and onmousemove event handlers should have keyboard equivalents.
• http://oaa-accessibility.org/wcag20/rule/63/
Check that elements with mouse event handlers also have key event handlers
• http://oaa-accessibility.org/wcag20/rule/95/
Check that elements with ondblclick handles also have key event handlers
• http://www.w3.org/TR/WCAG20-TECHS/SCR20
• From HTML Code Sniffer (https://squizlabs.github.io/HTML_CodeSniffer/Standards/WCAG2/)
The text was updated successfully, but these errors were encountered: