fix(theme): button scaling when disableAnimation is true (#3499)

This commit is contained in:
աӄա 2024-07-19 01:36:47 +08:00 committed by GitHub
parent 46edcca954
commit 59428b183d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---
Fixed button scaling when `disableAnimation` is `true` (#3489)

View File

@ -85,7 +85,7 @@ const button = tv({
false: "[&>svg]:max-w-[theme(spacing.8)]",
},
disableAnimation: {
true: "!transition-none",
true: "!transition-none data-[pressed=true]:scale-100",
false: "transition-transform-colors-opacity motion-reduce:transition-none",
},
},