Skip to content

fix: Visible focus and forced colors support - #2616

Open
bprusinowski wants to merge 1 commit into
feat/a11y-toolingfrom
fix/a11y-theme
Open

bprusinowski wants to merge 1 commit into
feat/a11y-toolingfrom
fix/a11y-theme

Conversation

@bprusinowski

@bprusinowski bprusinowski commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Part of the GitLab a11y audit. Fixes issues 125, 129, 131, and the focus part of 124.

This PR:

  • adds one visible focus ring (federal design system purple) for keyboard focus across buttons, links, tabs, menu items, inputs and sliders
  • gives the switch sufficient contrast
  • keeps switches, tabs and selected states visible in forced colors (high contrast) mode

How to test

  1. Tab through the home page, browse page and the chart editor: every stop shows a purple ring.
  2. In Chrome DevTools → Rendering, enable "forced-colors: active" and repeat to see visual hints visible (e.g. toggles or tab underlines).
  3. Run yarn test themes and npx playwright test e2e/keyboard-focus.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 13, 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 16, 2026 9:35am UTC

Request Review

@bprusinowski

Copy link
Copy Markdown
Member Author

Thanks for the review @mburri!

Would you take care of merging the approved PRs, or should I merge them myself? I'm not aware of other work on Visualize, and don't want to bring these changes in the middle of something else. Both work for me, let me know :)

This branch was successfully deployed

1 active deployment
Preview — 6edd3db1 Deployed Nov 16, 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.

2 participants