Skip to content

Commit 07f2c82

Browse files
committed
refactor(styled button): change transition duration to 100
1 parent 3180b40 commit 07f2c82

File tree

1 file changed

+4
-4
lines changed
  • packages/kit-styled/src/components/button

1 file changed

+4
-4
lines changed

packages/kit-styled/src/components/button/button.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ const buttonVariants = cva(
1010
variants: {
1111
look: {
1212
primary:
13-
'bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm transition-all active:press active:shadow-base',
13+
'bg-primary text-primary-foreground hover:bg-primary/90 shadow-sm transition-all duration-100 active:press active:shadow-base',
1414
secondary:
15-
'bg-secondary text-secondary-foreground hover:bg-secondary/90 shadow-sm transition-all active:press active:shadow-base',
15+
'bg-secondary text-secondary-foreground hover:bg-secondary/90 shadow-sm transition-all duration-100 active:press active:shadow-base',
1616
alert:
17-
'bg-alert text-alert-foreground hover:bg-alert/90 shadow-sm transition-all active:press active:shadow-base',
17+
'bg-alert text-alert-foreground hover:bg-alert/90 shadow-sm transition-all duration-100 active:press active:shadow-base',
1818
outline:
19-
'shadow-sm transition-all active:press active:shadow-base bg-background text-foreground border hover:bg-accent',
19+
'shadow-sm transition-all duration-100 active:press active:shadow-base bg-background text-foreground border hover:bg-accent',
2020
ghost: 'text-accent-foreground hover:bg-accent',
2121
link: 'text-foreground hover:underline hover:underline-offset-2 hover:text-foreground/80 hover:bg-transparent',
2222
},

0 commit comments

Comments
 (0)