Table Accessibility when table has horizontal scrolling - Ensure that scrollable region has keyboard access #38380
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Description
When inserting tables using the blocker editor, many of them will end up with horizontal scrolling, depending on width and amount of columns, which is fine and expected in the many themes I use.
The accessibility issue I am being flagged on is when there is no keyboard focus on the table which has horizontal scrolling, more info here https://dequeuniversity.com/rules/axe/4.3/scrollable-region-focusable and here https://www.w3.org/WAI/standards-guidelines/act/rules/scrollable-element-keyboard-accessible-0ssw9k/
I'm specifically referring to front-end of the site but it may be an issue on editor side as well. This is not specific to tables but tables happen to more commonly receive horizontal focus. Vertical scrolling would be an issue as well.
Bugs have been filed in chrome https://bugs.chromium.org/p/chromium/issues/detail?id=585413, but some arguments on if browser should really handle this like firefox does.
Craft CMS also dealt with this craftcms/cms#7236
May have some relation to #8401
Potential solution: https://marcus.io/blog/accessible-overflow
Step-by-step reproduction instructions
Alternative, follow above but on Firefox to see descried behavior.
Screenshots, screen recording, code snippet
Keyboard user can't focus on this table and scroll:
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: