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
The key to getting a scrollable region to be accessible with the keyboard is to ensure that a keyboard-only user can focus the scrollable region itself or a static text item within the scrollable region.
What problem does this feature solve?
Currently the generated
<pre>
element isn't fully accessible as it can't be focused by keyboard users.An example of syntax highlighting (using Hugo) and how the aXe devTools extension detects this issue:
Additional info:
What feature do you propose?
To make this fully accessible, the attribute
tabindex="0"
should be added to the<pre>
tag.According to MDN's page on tabindex the attribute can have 3 values:
-1
, which means "skip it using sequential tabbing"0
, focusable with sequential keyboard navigation (what we want in this case)The text was updated successfully, but these errors were encountered: