From ade2f3a5ab1b6d7d191076859555baac5d48d8e8 Mon Sep 17 00:00:00 2001 From: euvre <93761161+euvre@users.noreply.github.com> Date: Wed, 22 Jul 2026 14:57:23 +0800 Subject: [PATCH] fix(web): use outline-none instead of outline-0 on focusable controls (#17165) --- web/src/components/ui/button.tsx | 2 +- web/src/components/ui/checkbox.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/components/ui/button.tsx b/web/src/components/ui/button.tsx index d526857f34..c0f3d9a345 100644 --- a/web/src/components/ui/button.tsx +++ b/web/src/components/ui/button.tsx @@ -8,7 +8,7 @@ import { Link, LinkProps } from 'react-router'; const buttonVariants = cva( cn( - 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm transition-colors outline-0', + 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm transition-colors outline-none', 'disabled:pointer-events-none disabled:opacity-50 rounded border-0.5 border-transparent', '[&_svg]:pointer-events-none [&_svg:not([class*="size-"])]:size-4 shrink-0 [&_svg]:shrink-0', ), diff --git a/web/src/components/ui/checkbox.tsx b/web/src/components/ui/checkbox.tsx index 362b7d5ca6..6eb4a78291 100644 --- a/web/src/components/ui/checkbox.tsx +++ b/web/src/components/ui/checkbox.tsx @@ -13,7 +13,7 @@ const Checkbox = React.forwardRef<