From e232b1b398ff557eb31d1722c3bcb6fb89e50867 Mon Sep 17 00:00:00 2001 From: Marco Beretta <81851188+berry-13@users.noreply.github.com> Date: Sat, 26 Sep 2026 21:28:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=85=20fix:=20Quiet=20Form-Control=20Ou?= =?UTF-8?q?tlines=20in=20the=20Stock=20Palettes=20(#16400)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: Quiet Form-Control Outlines in the Stock Palettes The stock light and dark palettes gave border-control a 3:1 value, which made every field, textarea and dropdown outline far louder than the cards and separators around them. Both now use their border-light value, while the high contrast and ClickHouse palettes keep their 3:1 outlines. A legacy theme without border-control now keeps its own light border on controls instead of being pushed to a contrast-ranked candidate, which often landed on a text color. The contrast helper that ranking needed is removed. The empty tools and skills cards step up from border-light to border-medium so their dashed edge reads against the panel. * fix: Keep a Legacy Medium Border on Controls A theme that predates border-control and painted only its medium border drew that edge on selects and OTP slots, so it now falls back to the medium border after the light one instead of the bundled role. Adds scenarios for the stock outlines matching the card border, the legacy medium-border theme, and the empty tools card edge. * test: Spell Out the Stock Control Outline Scenario Tags (cherry picked from commit df59d61f77808c70e6d55161c9754fd5ec89b674) Original-PR: https://github.com/LibreChat-AI/LibreChat/pull/16400 --- .../SidePanel/Agents/Tools/SkillsSection.tsx | 2 +- .../SidePanel/Agents/Tools/ToolsSection.tsx | 2 +- .../mock/scenarios/control-border.spec.ts | 91 ++++++++++++++++--- packages/client/src/components/Field.ts | 4 +- packages/client/src/theme/controls.css | 6 +- packages/client/src/theme/registry.spec.ts | 78 ++-------------- packages/client/src/theme/registry.ts | 66 ++------------ .../client/src/theme/semanticTokens.spec.ts | 8 +- packages/client/src/theme/themes/dark.ts | 2 +- packages/client/src/theme/themes/default.ts | 2 +- .../client/src/theme/utils/applyTheme.spec.ts | 24 +++-- packages/client/src/theme/utils/applyTheme.ts | 2 +- packages/client/src/theme/utils/contrast.ts | 23 ----- 13 files changed, 117 insertions(+), 193 deletions(-) delete mode 100644 packages/client/src/theme/utils/contrast.ts diff --git a/client/src/components/SidePanel/Agents/Tools/SkillsSection.tsx b/client/src/components/SidePanel/Agents/Tools/SkillsSection.tsx index 2cb63ee1e9..cc8dc0d1ea 100644 --- a/client/src/components/SidePanel/Agents/Tools/SkillsSection.tsx +++ b/client/src/components/SidePanel/Agents/Tools/SkillsSection.tsx @@ -413,7 +413,7 @@ export default function SkillsSection({ items, onInfo, onRemove, onAdd }: Props)