From f2c2a27622ca632c46d729a7bf1d076d715c458a Mon Sep 17 00:00:00 2001 From: MyPrototypeWhat Date: Fri, 7 Nov 2025 17:30:12 +0800 Subject: [PATCH] refactor(combobox & tailwind): update styling and variable management - Modified default combobox trigger styles for improved visibility and consistency. - Updated background and text colors in the combobox options for better accessibility. - Cleaned up unused CSS variables in tailwind.css, retaining only those necessary for theme usage. - Enhanced comments for clarity in the CSS files. --- .../ui/src/components/primitives/combobox.tsx | 7 ++-- packages/ui/stories/tailwind.css | 39 +++---------------- src/renderer/src/assets/styles/tailwind.css | 1 - 3 files changed, 9 insertions(+), 38 deletions(-) diff --git a/packages/ui/src/components/primitives/combobox.tsx b/packages/ui/src/components/primitives/combobox.tsx index 36b3fb7a0e..f98c8f877e 100644 --- a/packages/ui/src/components/primitives/combobox.tsx +++ b/packages/ui/src/components/primitives/combobox.tsx @@ -22,7 +22,7 @@ const comboboxTriggerVariants = cva( { variants: { state: { - default: 'border-input aria-expanded:border-success aria-expanded:ring-2 aria-expanded:ring-success/20', + default: 'border-border aria-expanded:border-primary aria-expanded:ring-3 aria-expanded:ring-primary/20', error: 'border-destructive ring-2 ring-destructive/20 aria-expanded:border-destructive aria-expanded:ring-destructive/20', disabled: 'opacity-50 cursor-not-allowed pointer-events-none' @@ -194,11 +194,10 @@ export function Combobox({ {option.label}