You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug pre regions usually need scrollbars and react-syntax-highlighter scrollbars are currently not accessible for keyboard users.
This is failing WCAG 2.1.1 and besides causing barriers to keyboard only users also failing conformance to WCAG of the whole page.
Automatic accessibility testing tools like axe report this as serious bug under WCAG 2.1.1 success criterion.
Describe the bug
pre
regions usually need scrollbars and react-syntax-highlighter scrollbars are currently not accessible for keyboard users.This is failing WCAG 2.1.1 and besides causing barriers to keyboard only users also failing conformance to WCAG of the whole page.
Automatic accessibility testing tools like axe report this as serious bug under WCAG 2.1.1 success criterion.
To Reproduce
Steps to reproduce the behavior:
<pre style="display: block; overflow-x: auto; background: rgb(43, 43, 43); color: rgb(248, 248, 242); padding: 0.5em;">
)Expected behavior
As a keyboard only user I should be able to scroll to see the whole situation
Desktop (please complete the following information):
Smartphone (please complete the following information):
Fix
Add
tabindex="0"
topre
so that it will always get keyboard focus;The text was updated successfully, but these errors were encountered: