LibreChat/packages/client/src
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
..
common 🔖 fix: Announce Bookmark Selection State (#11450) 2026-01-21 13:49:50 -05:00
components 🎛️ feat: Give the Button Theme Roles for Its Label, Height, Fill and States (#16530) 2026-10-01 03:46:19 +00:00
hooks 🪞 feat: Expand Agent Cards Into Their Detail Dialog (#15798) 2026-10-01 03:46:16 +00:00
icons/provider 🍋 feat: Add AMD Lemonade Provider Recognition and Branding (#15664) 2026-09-06 20:46:08 +02:00
locales ♿ feat: High Contrast Light and Dark Appearance Modes (#15178) 2026-09-05 22:20:33 +02:00
Providers ⚡ refactor: Migrate @librechat/client build to tsdown (#13596) 2026-06-08 11:20:03 -04:00
svgs 🎨 fix: Draw Library Colours From Theme Roles and Record the Exceptions (#16482) 2026-10-01 03:46:18 +00:00
test ✨ feat: add morphing state icons across the client (#14697) 2026-09-04 03:27:14 +02:00
theme 🎛️ feat: Give the Button Theme Roles for Its Label, Height, Fill and States (#16530) 2026-10-01 03:46:19 +00:00
utils 🎛️ feat: Give the Button Theme Roles for Its Label, Height, Fill and States (#16530) 2026-10-01 03:46:19 +00:00
index.ts 🖼️ refactor: Consolidate Provider Icons Into a Single Registry (#15148) 2026-08-24 13:00:38 -04:00
store.ts 🔔 fix: Honor Toast Duration and Support Persistent Toasts (#15049) 2026-09-06 04:38:15 +02:00