"Try it" JavaScript demos are keyboard traps #743
Unanswered
stevegoldberg
asked this question in
Design system
Replies: 1 comment 1 reply
-
Hi @stevegoldberg 👋 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was tabbing through a page on MDN, and I found that once I tabbed into one of the "Try It" code blocks, I could not tab out. Hitting tab indents the code in the code block, and shift+tab removes the indent.
Naturally, this is bad for accessibility as it means that keyboard users cannot continue to use the page.
I would recommend removing the ability to indent code with tab and reserving tab for changing focus. See WCAG for more details.
Beta Was this translation helpful? Give feedback.
All reactions