Keyboard/screen reader navigation relies on focus proceeding in a logical and linear order and not getting lost such that the user does not know where they are or how to get back to the desired point in a web page.
Would it make sense to set the
tabIndex for the
-1 instead of
Great question JP! I put together a little CodePen demonstrating what you suggest.
div but what you suggest is correct, if you set the
Hi Erin, thanks for taking the time to create a CodePen to play with this. I'll do some experimenting on my end as well.