From 211b99f14422e4da14a7ed349ac3c3b821aec43d Mon Sep 17 00:00:00 2001 From: Gildas Garcia <1122076+djhi@users.noreply.github.com> Date: Wed, 17 Jun 2026 16:00:34 +0200 Subject: [PATCH] fix: consolidate focus states across inputs (#46588) ## Problem All inputs don't have the same style when focused ## Solution Consolidate focus states across inputs ## How to test Checkout the design system form examples: https://design-system-git-gildasgarcia-depr-354-consoli-0188d7-supabase.vercel.app/design-system/docs/ui-patterns/forms ## Summary by CodeRabbit * **Style** * Refined focus-visible ring/outline and ring-offset tokens across buttons, multi-select, radio groups, checkbox, select, and switch for a more consistent accessible experience. * Updated focus-state styling details within the shared Button and related controls (including open-state outline behavior). * **Refactor** * Updated icon upload preview triggers in form examples to use the shared Button component while preserving existing upload behavior and visuals. --- .../default/example/form-patterns-pagelayout.tsx | 7 ++++--- .../default/example/form-patterns-sidepanel.tsx | 5 +++-- .../ui-patterns/src/multi-select/multi-select.tsx | 12 ++++++------ packages/ui/src/components/Button/Button.tsx | 2 +- packages/ui/src/components/radio-group-stacked.tsx | 4 +++- packages/ui/src/components/shadcn/ui/checkbox.tsx | 4 ++-- packages/ui/src/components/shadcn/ui/select.tsx | 2 +- packages/ui/src/components/shadcn/ui/switch.tsx | 4 ++-- 8 files changed, 22 insertions(+), 18 deletions(-) diff --git a/apps/design-system/registry/default/example/form-patterns-pagelayout.tsx b/apps/design-system/registry/default/example/form-patterns-pagelayout.tsx index ba7b07db120..1d1820c157c 100644 --- a/apps/design-system/registry/default/example/form-patterns-pagelayout.tsx +++ b/apps/design-system/registry/default/example/form-patterns-pagelayout.tsx @@ -327,16 +327,17 @@ export default function FormPatternsPageLayout() { >
- +