Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive table accessibility issue #1092

Open
anandamaryon1 opened this issue Dec 9, 2024 · 0 comments
Open

Responsive table accessibility issue #1092

anandamaryon1 opened this issue Dec 9, 2024 · 0 comments
Assignees
Labels
accessibility Accessibility related 🐛 bug Something isn't working the way it should (including incorrect wording in documentation)

Comments

@anandamaryon1
Copy link
Collaborator

Bug Report

What is the issue?

The responsive table, when shown on small screens as a stacked list, does not have matching visual and code order.

The table visually presents as a list of key value pairs, but the code remains marked up as a table. This makes keyboard navigation confusing for sighted screen reader users, as the order they navigate through content does not match the visual representation.

Potential fixes

Ideally the information will be communicated via a screen reader in the same order as it's presented on screen. So, when in responsive 'stacked' view, a screen reader will communicate the inserted labels and their values, and not the underlying table headings and structure.

Another potential option is to have the markup completely swap for the stacked view, using display none to flip between two separate elements eg. table and dl.

Another option is to use scroll overflow tables instead of stacked responsive tables. (These are less ideal for informational tables and for using on small screens. But can be preferable for data-heavy comparison tables. Ideally we'd have both options, made accessibly.)

Related to

nhsuk/nhsuk-service-manual-community-backlog#26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility Accessibility related 🐛 bug Something isn't working the way it should (including incorrect wording in documentation)
Projects
Development

No branches or pull requests

1 participant