From 802de37dfbe85cc63552ab0007323e7c1959a311 Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Thu, 12 Nov 2026 09:43:17 +0100 Subject: [PATCH] fix: Visible focus, switch contrast and forced colors support in theme --- CHANGELOG.md | 5 + app/browse/ui/search-dataset-sort-control.tsx | 2 +- app/browse/ui/select-dataset-step.tsx | 15 +- app/charts/combo/axis-height-linear-dual.tsx | 5 + app/charts/map/map.tsx | 3 + app/charts/shared/axis-height-title.tsx | 2 + app/charts/table/table.tsx | 6 + app/components/chart-footnotes.tsx | 2 + app/components/data-download.tsx | 2 +- app/components/footer.tsx | 80 +++---- app/components/tabs.tsx | 10 + .../components/annotator-options.tsx | 2 +- .../components/chart-configurator.tsx | 3 + .../components/chart-controls/color-ramp.tsx | 7 +- .../chart-controls/drag-and-drop-tab.tsx | 18 ++ .../components/chart-controls/section.tsx | 4 + app/configurator/components/configurator.tsx | 3 +- app/configurator/components/field.tsx | 2 + app/configurator/components/icon-button.tsx | 10 + app/federal-ci/components/common.ts | 12 + .../components/footer-section-button.tsx | 21 +- app/federal-ci/components/footer.tsx | 5 +- app/federal-ci/components/top-bar.tsx | 2 + app/federal-ci/foundations/button.tsx | 9 +- app/federal-ci/foundations/index.ts | 2 +- app/federal-ci/theme/index.ts | 4 + app/login/components/profile-tables.tsx | 12 +- app/pages/docs/index.tsx | 11 +- app/statistics/base-stats-card.tsx | 17 +- app/themes/components.spec.ts | 40 ++++ app/themes/components.tsx | 214 +++++++++++++++++- app/themes/focus.ts | 52 +++++ e2e/focus.ts | 202 +++++++++++++++++ e2e/keyboard-focus.spec.ts | 65 ++++++ 34 files changed, 767 insertions(+), 82 deletions(-) create mode 100644 app/themes/components.spec.ts create mode 100644 app/themes/focus.ts create mode 100644 e2e/focus.ts create mode 100644 e2e/keyboard-focus.spec.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index f16129045f..46d8856a2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,11 @@ You can also check the ## Next Release +- Fixes + - Keyboard focus is now visible on buttons, links, tabs and menu items, the + switch has sufficient contrast, and switches and tabs stay visible in + forced colors (high contrast) mode + ## 6.5.7 - 2026-11-10 - Fixes diff --git a/app/browse/ui/search-dataset-sort-control.tsx b/app/browse/ui/search-dataset-sort-control.tsx index 9d54f2f82d..c8b553e5c4 100644 --- a/app/browse/ui/search-dataset-sort-control.tsx +++ b/app/browse/ui/search-dataset-sort-control.tsx @@ -42,7 +42,7 @@ export const SearchDatasetSortControl = ({ }, [disableScore]); return ( - +