Skip to content

Commit

Permalink
fix(theme): button scaling when disableAnimation is true (#3499)
Browse files Browse the repository at this point in the history
  • Loading branch information
wingkwong authored Jul 18, 2024
1 parent 46edcca commit 59428b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/empty-countries-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nextui-org/theme": patch
---

Fixed button scaling when `disableAnimation` is `true` (#3489)
2 changes: 1 addition & 1 deletion packages/core/theme/src/components/button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
Expand Down

0 comments on commit 59428b1

Please sign in to comment.