react-a11y icon indicating copy to clipboard operation
react-a11y copied to clipboard

Add tests to warn against use of an explicit tabIndex

Open kloots opened this issue 11 years ago • 3 comments

Setting tabIndex to an explicit value should be avoided, we should add tests for this.

kloots avatar Jun 11 '15 06:06 kloots

When you say explicit value to you mean positive integer? I think there are many valid use cases for setting it to 0 or -1 and we shouldn't prevent that.

erin-doyle avatar Nov 27 '17 12:11 erin-doyle

I agree we could add a warning for when the tabIndex is a positive integer.

erin-doyle avatar Sep 01 '18 16:09 erin-doyle

Apparently this rule had already been added in v1.0.0 but because the rule documentation page was missing I didn't realize it. I've added it in the merged PR linked.

erin-doyle avatar Oct 06 '18 16:10 erin-doyle