Skip to content

Commit

Permalink
fix: createPaddingStyles passed props
Browse files Browse the repository at this point in the history
  • Loading branch information
Amiditin committed Nov 2, 2023
1 parent b20a60c commit 83f4d29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui-parts/button/src/shape/shape.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 83f4d29

Please sign in to comment.