-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tabs show focus outline after mouse click, and don't respond to keyboard navigation with tab #12102
Comments
Hi @maxfliri, Thanks for reporting this. |
Hi, Thanks for looking into this issue. As it happens, I didn't have
You can see this replicated here: https://stackblitz.com/edit/js-hcj19m This fixed the outline rendering, which is now visible only when the tab is focused using the keyboard. Navigation with the tab key is still broken though. Regarding versions:
|
Exactly, you have to require / import the needed dependencies and install them. |
Hm, this should be normally not the case. Can you reproduce this with a simple codepen and using a CDN version like the one from https://unpkg.com/[email protected]/dist/?
Yes, we have done the change regarding the peer dependencies later, see my linked commit. |
|
Works for me here: https://codepen.io/DanielRuf/pen/XWXeVYM |
Still not working for me... Here is what I'm doing: after the page loads, I click on Tab 2 to make sure it has the focus, then I press the tab on the keyboard: the focus doesn't go to Tab 3; instead it goes to the console button in the bar at the bottom of the page. I tested this with Chrome, Firefox and Safari, and I see the same behaviour in all three browsers. |
Ah, yes I can reproduce this. This might be a general issue for a long time. I'm not sure if we even call I see only a So far this issue was not reported as such, PRs which fix this are very welcome. |
I think the foundation tabs work as they should. Tabs can be changed with left / right key, not tab key. So I think this is no problem. I would suggest to close this |
I agree. Thanks for your feedback @apriljunge. Closing as suggested. |
What should happen?
What happens instead?
Test Case and/or Steps to Reproduce (for bugs)
Test Case: https://stackblitz.com/edit/js-nzvfy9
This test case was adapted with minimal changes from the first example in the documentation page for tabs: https://get.foundation/sites/docs/tabs.html#basics
How to reproduce:
Context
I recently upgraded our project to use foundation 6.6.3; previously we were using version 6.3.1. In the old version, this was working as expected.
Your Environment
Checklist
The text was updated successfully, but these errors were encountered: