Procházet zdrojové kódy

💄 style(button): fix default button text color

- add text-white class to default button variant to ensure proper text color contrast
yourname před 3 měsíci
rodič
revize
124647ce4a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      mini/src/components/ui/button.tsx

+ 1 - 1
mini/src/components/ui/button.tsx

@@ -7,7 +7,7 @@ const buttonVariants = cva(
   {
     variants: {
       variant: {
-        default: 'bg-primary text-primary-foreground hover:bg-primary/90',
+        default: 'bg-primary text-primary-foreground text-white hover:bg-primary/90',
         destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',
         outline: 'border border-input hover:bg-accent hover:text-accent-foreground',
         secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',