Skip to content

Commit 0e1d9da

Browse files
committed
fix: ghost button hover color and padding
1 parent baaf3bd commit 0e1d9da

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/react/v2/components/primitives/button.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ const buttonVariants = cva(
2828
outline:
2929
' border border-border-button-outline text-text-secondary bg-surface-button-outline shadow-xs hover:bg-surface-button-outline-hover active:bg-surface-button-outline hover:border-border-button-outline-hover disabled:bg-surface-button-outline-disabled disabled:text-text-disabled disabled:*:text-text-disabled disabled:border disabled:border-border-button-outline-disabled dark:bg-input/30 dark:border-input dark:hover:bg-input/50',
3030
ghost:
31-
'bg-transparent text-text-secondary hover:text-accent-foreground dark:hover:bg-accent/50',
31+
'bg-transparent text-text-secondary hover:text-accent-foreground dark:hover:bg-accent/50 hover:bg-surface-button-ghost-hover',
3232
destructive:
3333
'bg-destructive text-white hover:bg-destructive/90 active:bg-destructive focus-visible:ring-destructive dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',
3434
},
3535
size: {
3636
md: 'h-18 px-8 py-4 has-[>svg]:px-6',
37-
sm: 'h-16 rounded-md gap-3 px-6 has-[>svg]:px-5',
37+
sm: 'h-20 rounded-md gap-3 px-7 py-4 has-[>svg]:px-5',
3838
lg: 'h-20 rounded-md px-12 has-[>svg]:px-8',
3939
icon: 'size-18',
4040
'icon-sm': 'size-16',
@@ -63,7 +63,7 @@ function Button({
6363
return (
6464
<Comp
6565
data-slot="button"
66-
className={cn(buttonVariants({ variant, size, className }))}
66+
className={cn(buttonVariants({ variant, size }), className)}
6767
{...(props as any)}
6868
/>
6969
)

0 commit comments

Comments
 (0)