debugger icon indicating copy to clipboard operation
debugger copied to clipboard

Fix jsx-a11y/no-noninteractive-element-interactions warnings raised by jsx-a11y linter.

Open yzen opened this issue 7 years ago • 5 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/no-noninteractive-element-interactions" 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/no-noninteractive-element-interactions": ["warn", {
  "handlers": ["onClick", "onError", "onLoad", "onMouseDown", "onMouseUp", "onKeyPress", "onKeyDown", "onKeyUp"],
  "body": ["onError", "onLoad"],
  "iframe": ["onError", "onLoad"],
  "img": ["onError", "onLoad"]
}],

to

"jsx-a11y/no-noninteractive-element-interactions": ["error", {
  "handlers": ["onClick", "onError", "onLoad", "onMouseDown", "onMouseUp", "onKeyPress", "onKeyDown", "onKeyUp"],
  "body": ["onError", "onLoad"],
  "iframe": ["onError", "onLoad"],
  "img": ["onError", "onLoad"]
}],

yzen avatar Dec 18 '18 15:12 yzen

The error in question once again revolves around using generic elements instead of buttons for actions. Through solving #7537 I think most of the errors here, if not all, should be resolved as well.

Garbee avatar Dec 18 '18 19:12 Garbee

/claim

codingnninja avatar Jan 02 '19 17:01 codingnninja

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 Jan 02 '19 17:01 claim

How's it going @codingnninja?

jasonLaster avatar Jan 07 '19 20:01 jasonLaster

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