Skip to content

Tab Content Focus Weirdness #1145

Answered by serifluous
GiantRobots asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @GiantRobots and @seanmateer ! Great question. This article helped me better understand why keyboard handling and focus states for Tabs are slightly different than more straightforward content: https://css-tricks.com/tabs-its-complicated/. There's a link to a more detailed article in there too, which gets into specifics around what the experience is like for users who rely more on screen readers than the visual Tab controls (see the "A problem reading panels" section).

Because of the way Tabs are built, the Tab content panel needs its own focusable state. Otherwise, screen readers will skip over the content if there's no focusable element inside it. Additionally, for people who rely o…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by corinne-nagel
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants