mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-16 13:00:55 +00:00
* 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. |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| sw | ||
| test | ||
| babel.config.cjs | ||
| check_updates.sh | ||
| index.html | ||
| jest.config.cjs | ||
| jest.resolver.cjs | ||
| nginx.conf | ||
| package.json | ||
| postcss.config.cjs | ||
| tailwind.config.cjs | ||
| tsconfig.json | ||
| vite.config.ts | ||