From 7b467a0936401800f589d50fdb62ed655c002f51 Mon Sep 17 00:00:00 2001 From: devgioele Date: Thu, 14 Sep 2023 10:09:00 +0000 Subject: [PATCH] fix button style being an object (#280) --- src/components/button/Button.tsx | 2 +- src/components/button/ButtonLink.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/button/Button.tsx b/src/components/button/Button.tsx index a95affa1..4d70c439 100644 --- a/src/components/button/Button.tsx +++ b/src/components/button/Button.tsx @@ -35,7 +35,7 @@ export const Button = forwardRef( props.disabled ? button.modeVariantTone[mode][variant].disabled : button.modeVariantTone[mode][variant][tone], - button.button.variantSize.base, + button.button.variantSize.base[size], button.button.variantSize[variant][size], className, )} diff --git a/src/components/button/ButtonLink.tsx b/src/components/button/ButtonLink.tsx index af4a9811..9d56179a 100644 --- a/src/components/button/ButtonLink.tsx +++ b/src/components/button/ButtonLink.tsx @@ -40,7 +40,7 @@ export const ButtonLink = forwardRef( disabled ? button.modeVariantTone[mode][variant].disabled : button.modeVariantTone[mode][variant][tone], - button.button.variantSize.base, + button.button.variantSize.base[size], button.button.variantSize[variant][size], className, )