From 83f4d29d4320e569b1d8a3beb5224e2a7997a1db Mon Sep 17 00:00:00 2001 From: Dmitry Date: Thu, 2 Nov 2023 14:30:08 +0300 Subject: [PATCH] fix: createPaddingStyles passed props --- ui-parts/button/src/shape/shape.styles.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-parts/button/src/shape/shape.styles.ts b/ui-parts/button/src/shape/shape.styles.ts index 8a1509ad6..38827c7ef 100644 --- a/ui-parts/button/src/shape/shape.styles.ts +++ b/ui-parts/button/src/shape/shape.styles.ts @@ -66,8 +66,8 @@ export const createShapeStyles = ({ combine( createBaseShapeStyles(size, fontSize, fontWeight, fontFamily), createPaddingStyles( - paddingLeft || Number(size) * paddingRatio, - paddingRight || Number(size) * paddingRatio + paddingLeft ?? Number(size) * paddingRatio, + paddingRight ?? Number(size) * paddingRatio ), createRoundingStyles(rounding), createFillStyles(),