@@ -5,7 +5,8 @@ import { cva, type VariantProps } from "class-variance-authority"
5
5
import { cn } from "@/lib/utils"
6
6
7
7
const buttonVariants = cva (
8
- "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" ,
8
+ // Changed `[&_svg]:size` from `4` to `5`
9
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-5 [&_svg]:shrink-0" ,
9
10
{
10
11
variants : {
11
12
variant : {
@@ -18,12 +19,12 @@ const buttonVariants = cva(
18
19
"bg-secondary text-secondary-foreground hover:bg-secondary/80" ,
19
20
ghost : "hover:bg-accent hover:text-accent-foreground" ,
20
21
link : "text-primary underline-offset-4 hover:underline" ,
21
- ghostLink : "hover:bg-accent" ,
22
+ ghostLink : "hover:bg-accent" , // added
22
23
} ,
23
24
size : {
24
25
default : "h-10 px-4 py-2" ,
25
- "2xs" : "h-5 rounded-sm px-1" , // added manually
26
- xs : "h-7 rounded-sm px-3" , // added manually
26
+ "2xs" : "h-5 rounded-sm px-1" , // added
27
+ xs : "h-7 rounded-sm px-3" , // added
27
28
sm : "h-9 rounded-md px-3" ,
28
29
lg : "h-11 rounded-md px-8" ,
29
30
icon : "h-10 w-10" ,
0 commit comments