From 3778e7e628d2d67b09ae91d037ec8f325ba94974 Mon Sep 17 00:00:00 2001 From: chengyongru <2755839590@qq.com> Date: Tue, 11 Aug 2026 00:00:22 +0800 Subject: [PATCH] fix(webui): soften form control focus rings --- webui/src/App.tsx | 2 +- .../settings/shared/SettingsControls.tsx | 1 - .../settings/system/AutomationsSettings.tsx | 6 ++++- .../src/components/thread/PromptNavigator.tsx | 4 ++- .../components/thread/WorkspaceControls.tsx | 5 +--- webui/src/components/ui/form-control.ts | 2 ++ webui/src/components/ui/input.tsx | 4 ++- webui/src/components/ui/textarea.tsx | 4 ++- webui/src/tests/form-controls.test.tsx | 26 +++++++++++++++++++ webui/src/tests/settings-channels.test.tsx | 5 ++-- 10 files changed, 47 insertions(+), 12 deletions(-) create mode 100644 webui/src/components/ui/form-control.ts create mode 100644 webui/src/tests/form-controls.test.tsx diff --git a/webui/src/App.tsx b/webui/src/App.tsx index d655d4f05..316d373e6 100644 --- a/webui/src/App.tsx +++ b/webui/src/App.tsx @@ -362,7 +362,7 @@ function AuthForm({ disabled={submitting} aria-invalid={validationError ? true : undefined} aria-describedby={validationError ? "webui-auth-error" : undefined} - className="pr-10 focus-visible:ring-1 focus-visible:ring-ring/30 focus-visible:ring-offset-0" + className="pr-10" autoFocus />