Skip to content

Conversation

@jquense
Copy link
Contributor

@jquense jquense commented Jan 23, 2016

Chrome treats anchor tags with an explicit tabIndex='0' different then if the attribute was not present. Specifically when clicking a link with an implicit tab index (i.e. no attribute on the node) no focus outline is shown. Whereas with an explicit tabindex='0' it does get shown. This is super minor, but maintaining react-bootstrap has taught me that A LOT of people are VERY touchy about browser focus outlines.

If anything this just makes the behavior consistent across browsers. (tested in recent FF, Chrome, and Edge)

example: https://jsfiddle.net/7kmck1f7/1/

…t in Chrome

Chrome treats anchor tags with an explicit `tabIndex='0'` different then if
the attribute was not present. Specifically when clicking a link with an
implicit tab index (i.e. no attribute on the node) no focus outline is shown. Whereas with an explicit tabindex='0' it does get shown. This is super minor, but maintaining react-bootstrap has taught me that A LOT of people are VERY touchy about browsers focus outlines.

If anything this just makes the behavior consistent across browsers.
(tested in recent FF, Chrome, and Edge)

example: https://jsfiddle.net/7kmck1f7/1/
@facebook-github-bot
Copy link
Contributor

@jquense updated the pull request.

@jimfb
Copy link
Contributor

jimfb commented Feb 1, 2016

I suspect this was fixed in #1510

At the very least, this will no longer pass tests if you rebase.

@jimfb jimfb closed this Feb 1, 2016
@jimfb
Copy link
Contributor

jimfb commented Feb 1, 2016

@jquense Can you verify that the problem was fixed in master?

@jquense
Copy link
Contributor Author

jquense commented Feb 2, 2016

🎉 confirmed that the PR fixed it! thanks :) This is great change!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants