From 97348e2052dd31ea99dc193ba1f17bc1359332e8 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Sun, 23 Feb 2025 09:34:58 +0100 Subject: [PATCH] fixed FAB (#19469) --- packages/ui/components/button/Button.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ui/components/button/Button.tsx b/packages/ui/components/button/Button.tsx index c8cb4dc30c..f9de090fa3 100644 --- a/packages/ui/components/button/Button.tsx +++ b/packages/ui/components/button/Button.tsx @@ -46,7 +46,7 @@ export const buttonClasses = cva( variant: { button: "", icon: "flex justify-center", - fab: "rounded-full justify-center md:rounded-[10px] radix-state-open:rotate-45 md:radix-state-open:rotate-0 radix-state-open:shadown-none radix-state-open:ring-0", + fab: "min-w-14 min-h-14 md:min-w-min md:min-h-min rounded-full justify-center md:rounded-[10px] radix-state-open:rotate-45 md:radix-state-open:rotate-0 radix-state-open:shadown-none radix-state-open:ring-0", }, color: { primary: [ @@ -206,7 +206,7 @@ export const buttonClasses = cva( { variant: "fab", size: "base", - className: "min-h-14 md:min-h-9 md:min-w-auto md:px-4 md:py-2.5", + className: "md:px-4 md:py-2.5", }, ], defaultVariants: {