LibreChat/client/src/components
Marco Beretta 0eccfbfa58 🎛️ feat: Give the Button Theme Roles for Its Label, Height, Fill and States (#16530)
* feat: Give the Button Theme Roles for Its Label, Height, Fill and States

The Button drew a fixed 500-weight label at 40px and 36px, painted its
primary fill in the inverted surface its checkbox and switch share, focused
in the primary ink, and only dimmed when disabled, so a theme could not
draw Click UI's 400-weight 32px buttons or its #302e32 primary.

Add controlFontWeight, buttonHeight and buttonHeightSm appearance roles and
button-primary and button-primary-hover color roles, which follow the
inverted surface for a theme that names only that. The Button reads them,
focuses in focus-control, presses in the pressed roles and composes the
shared disabled recipe; the defaults reproduce today's button exactly.
Tailwind Merge now knows the new utilities, so a caller's own height or
weight still wins.

SelectTrigger hid its outline on every focus and drew nothing instead; it
now draws keyboard focus in focus-control, like the shared field.

The ClickHouse theme takes Click UI's label weight, button height and
primary fills, and the drift guard pins them and measures the Button.

* fix: Focus the Shared Inputs in the Focus-Control Role and Repair the Button Specs

SecretInput, MultiSearch, InputWithDropDown and InputCombobox drew keyboard
focus in the decorative ring-primary, about 2.3:1 on the dark default canvas.
They now use focus-control, and a guard holds that role at 3:1 on every
control canvas in each theme. The Scrim spec follows the Button's focus role,
and the button-roles scenario opens the Data & Privacy tab by its current name.

* test: Reach the Shared Input Focus Rings by Keyboard

The focus-role guard read component source, which a dead string or a ring on a
non-focusable wrapper would satisfy. Each control is now reached by Tab and
the focused element, or the combobox's ring host while it holds keyboard
focus, is asserted to paint the focus-control ring.

(cherry picked from commit dd5fdf1ff4)

Original-PR: https://github.com/LibreChat-AI/LibreChat/pull/16530
2026-10-01 03:46:19 +00:00
..
__tests__
Agents 📐 fix: Draw Controls at the Theme Control Radius (#16481) 2026-10-01 03:46:19 +00:00
Appearance
Artifacts 🌊 refactor: Upgrade the Client to Tailwind v4 (#15996) 2026-10-01 03:46:16 +00:00
Audio
Auth ⛴️ fix: Align Canary Timing Types and CI Formatting 2026-10-01 03:46:19 +00:00
Banners 🫧 fix: Paint Chat Surfaces From Theme Roles (#16483) 2026-10-01 03:46:18 +00:00
Bookmarks 🌊 refactor: Upgrade the Client to Tailwind v4 (#15996) 2026-10-01 03:46:16 +00:00
Chat 📏 feat: Give Theme-Sized Controls Their Own Padding and Gap Roles (#16528) 2026-10-01 03:46:19 +00:00
Conversations 🎒 feat: Carry Project Context Across Conversations (#15684) 2026-10-01 03:46:19 +00:00
Endpoints 🎨 feat: Check Color Tokens and Class Existence (#16041) 2026-10-01 03:46:16 +00:00
Input 🎨 feat: Check Color Tokens and Class Existence (#16041) 2026-10-01 03:46:16 +00:00
Insights 🪶 style: Quieter Primitives, Shared Panel Headers, and Flat Management Lists (#16244) 2026-10-01 03:46:17 +00:00
MCP 🧽 fix: Paint Freed Feature Surfaces From Theme Roles (#16517) 2026-10-01 03:46:19 +00:00
MCPUIResource 🫸 fix: Gate MCP App Views and Actions on User Intent (#16297) 2026-10-01 03:46:17 +00:00
Messages 🎨 feat: Theme the Shared Code Block With surface-code and a New surface-code-body Role (#16334) 2026-10-01 03:46:17 +00:00
Nav 📐 fix: Draw Controls at the Theme Control Radius (#16481) 2026-10-01 03:46:19 +00:00
OAuth
Plugins/Store
Projects 🎒 feat: Carry Project Context Across Conversations (#15684) 2026-10-01 03:46:19 +00:00
Prompts 📐 fix: Draw Controls at the Theme Control Radius (#16481) 2026-10-01 03:46:19 +00:00
Share 🖼️ fix: Paint the Shared Link Tenant's Deployment Theme (#16333) 2026-10-01 03:46:17 +00:00
SharePoint 🎨 style: Semantic Colour Roles for Builder, Tools and Sharing Surfaces (#16294) 2026-10-01 03:46:17 +00:00
Sharing ♿ fix: Keep Identity Badge Labels at Text Contrast (#16337) 2026-10-01 03:46:17 +00:00
SidePanel ⛴️ fix: Align Canary Timing Types and CI Formatting 2026-10-01 03:46:19 +00:00
Skills 🧩 fix: Paint Panel Surfaces From Theme Roles (#16484) 2026-10-01 03:46:18 +00:00
System
Tools 🌊 refactor: Upgrade the Client to Tailwind v4 (#15996) 2026-10-01 03:46:16 +00:00
ui 🪶 style: Quieter Primitives, Shared Panel Headers, and Flat Management Lists (#16244) 2026-10-01 03:46:17 +00:00
UnifiedSidebar 🎛️ feat: Give the Button Theme Roles for Its Label, Height, Fill and States (#16530) 2026-10-01 03:46:19 +00:00
Variables 🌊 refactor: Upgrade the Client to Tailwind v4 (#15996) 2026-10-01 03:46:16 +00:00
Web 🎨 feat: Check Color Tokens and Class Existence (#16041) 2026-10-01 03:46:16 +00:00
index.ts
QueryDevtoolsGate.tsx