Skip to content

fix: Small tables fit their rows - #2622

Open
bprusinowski wants to merge 1 commit into
fix/a11y-tablefrom
fix/table-small-heights
Open

bprusinowski wants to merge 1 commit into
fix/a11y-tablefrom
fix/table-small-heights

Conversation

@bprusinowski

@bprusinowski bprusinowski commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Fixes GitLab issue 796 (not part of the a11y audit).

This PR:

  • adds the height of a horizontal scrollbar to the table, so on systems with classic scrollbars (e.g. Windows) it no longer covers the last row
  • together with fix: Accessible table chart #2621, which sizes the table to its rows, small tables show all rows without needless scrollbars

How to test

Use classic scrollbars. On macOS, set System Settings → Appearance → "Show scroll bars" to "Always"; Windows already uses them.

  1. In Browse, search for "Members of the Federal Council who declined election", create a chart from it and switch the chart type to Table. The table has 5 rows.
  2. Make the browser window about 1000px wide, so the columns no longer fit and a horizontal scrollbar appears.
    • Expected: all 5 rows are fully visible, the horizontal scrollbar sits below the last row ("Stehlin, Johann Jakob"), and there is no vertical scrollbar.
    • On main, the horizontal scrollbar covers the last row and a vertical scrollbar appears.
  3. Widen the window until all columns fit.
    • Expected: no scrollbars at all.
    • On main, a vertical scrollbar remains, because the table is 2px too short.
  4. Open a large table, for example "Forest fire danger": it still stops at 600px and scrolls inside itself.
  5. Run npx playwright test e2e/table-chart-size.spec.ts. It shows scrollbars in Chromium, because headless Chromium hides them by default.

  • 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:40pm UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 7cd01727 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