Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

new rule: react-a11y-event-has-role #257

Closed
t-ligu opened this issue Sep 18, 2016 · 0 comments
Closed

new rule: react-a11y-event-has-role #257

t-ligu opened this issue Sep 18, 2016 · 0 comments
Milestone

Comments

@t-ligu
Copy link
Contributor

t-ligu commented Sep 18, 2016

Check that non-form and non-anchor elements with event handlers have valid roles.
http://oaa-accessibility.org/wcag20/rule/94/

Reference: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_button_role

Alternative:
Enforce that non-interactive, visible elements (such as div) that have click handlers use the role attribute.
https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/src/rules/onclick-has-role.js

@t-ligu t-ligu changed the title new rule: react-a11y-no-onchange new rule: react-a11y-onclick-has-role Sep 18, 2016
@t-ligu t-ligu changed the title new rule: react-a11y-onclick-has-role new rule: react-a11y-event-has-role Sep 19, 2016
@HamletDRC HamletDRC modified the milestone: 2.0.11 Sep 22, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants