From 84d15112b6d988daa94caa3afd35cb52570e26f4 Mon Sep 17 00:00:00 2001 From: Katie Langerman <18661030+langermank@users.noreply.github.com> Date: Fri, 1 Nov 2024 12:00:23 -0700 Subject: [PATCH] dont pass in base styles --- packages/react/src/Button/ButtonBase.tsx | 29 ++++++++++-------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/packages/react/src/Button/ButtonBase.tsx b/packages/react/src/Button/ButtonBase.tsx index f64137b8433..ad01efc72f3 100644 --- a/packages/react/src/Button/ButtonBase.tsx +++ b/packages/react/src/Button/ButtonBase.tsx @@ -118,7 +118,7 @@ const ButtonBase = forwardRef( > { @@ -314,13 +314,8 @@ const ButtonBase = forwardRef( true, ) : TrailingVisual - ? renderModuleVisual( - TrailingVisual, - Boolean(loading) && !LeadingVisual, - 'trailingVisual', - false, - ) - : null + ? renderModuleVisual(TrailingVisual, Boolean(loading) && !LeadingVisual, 'trailingVisual', false) + : null } { @@ -425,8 +420,8 @@ const ButtonBase = forwardRef( 'trailingVisual', ) : TrailingVisual - ? renderVisual(TrailingVisual, Boolean(loading) && !LeadingVisual, 'trailingVisual') - : null + ? renderVisual(TrailingVisual, Boolean(loading) && !LeadingVisual, 'trailingVisual') + : null } {