Skip to content

fix: Accessible table chart - #2621

Open
bprusinowski wants to merge 2 commits into
fix/a11y-filtersfrom
fix/a11y-table
Open

bprusinowski wants to merge 2 commits into
fix/a11y-filtersfrom
fix/a11y-table

Conversation

@bprusinowski

@bprusinowski bprusinowski commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Part of the GitLab a11y audit. Fixes issues 127, 128 and the table part of 133, plus the table findings from the keyboard audit.

This PR:

  • exposes the table chart to screen readers as a real table (header row, row headers, sort state) instead of a hidden copy
  • adds a separate "Sort by …" button next to each column label, so columns sort by keyboard; clicking the header still sorts and the label still opens the metadata
  • makes group rows expandable by keyboard, and keeps focus in rows while the table re-renders
  • shades group rows by level, as the code intended (the grey level colors were never applied), with text, chevron and focus ring colors that keep enough contrast on every level
  • announces the number of matching rows after searching
  • sizes the table to its rows (header, visible rows, focus ring room), so small tables no longer get a needless scrollbar; the height stays the same while searching
  • lists rows in the compact mobile view as a list
  • adds keyboard sorting and aria-sort to the dataset preview table

Tab reaches every control, including rows below the fold.

How to test

  1. In a table chart, Tab into the table, sort a column with Enter on "Sort by …", and check that the header announces the sort direction.
  2. Group by a column, expand a group with Enter, and Tab down to groups below the visible area.
  3. Search the table and check that the number of matching rows is announced.
  4. On a dataset preview page, sort a column by keyboard.
  5. Run npx playwright test e2e/table-chart-keyboard.spec.ts.

  • I added a CHANGELOG entry
  • I made a self-review of my own code
  • I wrote tests for the changes (if applicable)

@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
visualization-tool Ready Ready Preview Nov 25, 2026 12:37pm UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 8cd4c181 Deployed Nov 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant