diff --git a/.changeset/empty-countries-count.md b/.changeset/empty-countries-count.md new file mode 100644 index 0000000000..bd5a679e01 --- /dev/null +++ b/.changeset/empty-countries-count.md @@ -0,0 +1,5 @@ +--- +"@nextui-org/theme": patch +--- + +Fixed button scaling when `disableAnimation` is `true` (#3489) diff --git a/packages/core/theme/src/components/button.ts b/packages/core/theme/src/components/button.ts index ea7f48a041..6cb3c0eec6 100644 --- a/packages/core/theme/src/components/button.ts +++ b/packages/core/theme/src/components/button.ts @@ -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", }, },