debugger icon indicating copy to clipboard operation
debugger copied to clipboard

Fix jsx-a11y/click-events-have-key-events warnings raised by jsx-a11y linter.

Open yzen opened this issue 7 years ago • 6 comments

To get a list of accessibility warnings raised by jsx-a11y linter run: yarn lint:jsx-a11y.

From that list please note all instances that are flagged to have "jsx-a11y/click-events-have-key-events" problem. Each one needs to be addressed individually.

Once all of the instances are resolved make sure to change this setting in .eslintrc.jsx-a11y from:

"jsx-a11y/click-events-have-key-events": "warn",

to

"jsx-a11y/click-events-have-key-events": "error",

yzen avatar Dec 18 '18 15:12 yzen

This error details the requirement that if you have an onClick assignment then you should also have a handler for keyboard events on the same node. This goes hand-in-hand with #7537.

I strongly recommend focusing on #7537 first, since doing that job well will naturally resolve this issue. Button nodes by default wire keyboard events to click events.

Garbee avatar Dec 18 '18 19:12 Garbee

/claim

nagpalm7 avatar Feb 11 '19 12:02 nagpalm7

Thanks for claiming the issue! :wave:

Here are some links for getting setup, contributing, and developing. We're always happy to answer questions in slack! If you become busy, feel free to /unclaim it.

:fox_face: Debugger team!

claim avatar Feb 11 '19 12:02 claim

/unclaim

nagpalm7 avatar Feb 11 '19 15:02 nagpalm7

Done :+1:

claim avatar Feb 11 '19 15:02 claim

Firefox Developer Tools (including Debugger tool) development is entirely happening in Bugzilla and new issues should be reported here: https://bugzilla.mozilla.org/enter_bug.cgi?product=DevTools&component=Debugger

Also, supporting JSX in the code base is not on our long term roadmap, so this might be invalid report.

Honza

janodvarko avatar Feb 25 '21 13:02 janodvarko