From b9e1dcf23e29e0adb08119b92f91e81db23ebb26 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Tue, 24 Jun 2025 10:32:19 +0200 Subject: refactor: change button variant from 'ghost' to 'text' across multiple components for consistency --- apps/web/src/components/ui/button.tsx | 2 +- apps/web/src/components/ui/calendar.tsx | 2 +- apps/web/src/components/ui/input.tsx | 2 +- apps/web/src/components/ui/pagination.tsx | 2 +- apps/web/src/components/ui/sidebar.tsx | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/web/src/components/ui') diff --git a/apps/web/src/components/ui/button.tsx b/apps/web/src/components/ui/button.tsx index f5863e20..d4406d5b 100644 --- a/apps/web/src/components/ui/button.tsx +++ b/apps/web/src/components/ui/button.tsx @@ -17,7 +17,7 @@ const buttonVariants = cva( "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground", secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80", - ghost: "hover:bg-accent hover:text-accent-foreground", + text: "bg-transparent p-0 rounded-none hover:text-muted-foreground", // Instead of ghost (matches app better) link: "text-primary underline-offset-4 hover:underline", }, size: { diff --git a/apps/web/src/components/ui/calendar.tsx b/apps/web/src/components/ui/calendar.tsx index 2dca9b14..192643cb 100644 --- a/apps/web/src/components/ui/calendar.tsx +++ b/apps/web/src/components/ui/calendar.tsx @@ -43,7 +43,7 @@ function Calendar({ : "[&:has([aria-selected])]:rounded-md" ), day: cn( - buttonVariants({ variant: "ghost" }), + buttonVariants({ variant: "text" }), "h-8 w-8 p-0 font-normal aria-selected:opacity-100" ), day_range_start: "day-range-start", diff --git a/apps/web/src/components/ui/input.tsx b/apps/web/src/components/ui/input.tsx index 42f4c452..72314045 100644 --- a/apps/web/src/components/ui/input.tsx +++ b/apps/web/src/components/ui/input.tsx @@ -41,7 +41,7 @@ const Input = React.forwardRef( {showPasswordToggle && (