Tab jump over hidden elements
See original GitHub issueDescribe the bug Tabbing goes through hidden elements too.
To Reproduce Use any >2 slides carousel with links. Try tabbing. Focus is running though hidden elements.
Expected behavior Whole carousel should be recognized as few elements (in that order):
- Arrows (if enabled) - obviously, left/right.
- Dots (if enabled) - to enable selecting slide without jumping though all of those.
- Whole carousel (should also be outlined to accent focus?) to enable keyboard left/right sliding)
- Visible content elements - jumping though visible slide elements
Additional context
HTML’s tabindex
might be useful.
Well, this might be considered as both bug and feature 🤔
- [Bug] Remove hidden elements
tabindex
. - [Feature] Allow logical
tabindex
integration.
IssueHunt Summary
Backers (Total: $0.00)
Become a backer now!
Or submit a pull request to get the deposits!
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Is it possible to prevent hidden elements jumping into view on ...
In my case, I added a dynamic tabindex attribute, so that when the tab-able elements where hidden, it was tabindex="-1" (prevent all ...
Read more >Trapping Focus Within An Element Using Tab-Key Navigation ...
Ben Nadel looks at how to programmatically keep focus within a container element (such as a modal window) using JavaScript when the user...
Read more >Control focus with tabindex - web.dev
Any tabindex greater than 0 jumps the element to the front of the natural tab order. If there are multiple elements with a...
Read more >How to Prevent Tab Indexing on Specific Elements - W3docs
The tabindex attribute allows making an element and areas having the element as its DOM anchor be focusable areas, as well as makes...
Read more >Technique: Managing focus and inactive elements
Having to tab through invisible controls to reach visible ones is arduous and potentially confusing for sighted users navigating the page by keyboard....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Tab stick only to elements with
tabindex
attribute. I can post some example code in few minutes.@piotr-s-brainhub has cancelled funding for this issue.(Cancelled amount: $5.00) See it on IssueHunt