From 014b6222e408874cd406632239324e0e9dadbd3c Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 15 Feb 2024 19:41:17 -0600 Subject: [PATCH] Fix button overflow --- src/components/Button.tsx | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/src/components/Button.tsx b/src/components/Button.tsx index cf9dfee1eb..d71786dfc9 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -362,6 +362,8 @@ export function Button({ [state, variant, color, size, disabled], ) + const flattenedBaseStyles = flatten(baseStyles) + return ( {variant === 'gradient' && ( - + + + )} {typeof children === 'string' ? (