Skip to content

Commit

Permalink
fix(button): fix the positionning of icon
Browse files Browse the repository at this point in the history
  • Loading branch information
clementprevot committed May 14, 2024
1 parent 65d44f6 commit d6f56fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/fractal/src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
maxHeight: SizeSpacing6,
maxWidth: SizeSpacing6,
padding: asLink
? `calc(${SizeSpacing1} + ${SizeSpacingQuarter}) 0 0 calc(${SizeSpacing1} + ${SizeSpacingHalf})`
: `${SizeSpacingHalf} 0 0 ${SizeSpacingHalf}`,
? `calc(${SizeSpacing1} + ${SizeSpacingQuarter}) 0 0 calc(${SizeSpacing1} + ${SizeSpacingQuarter})`
: `${SizeSpacingHalf} 0 0 ${SizeSpacingQuarter}`,
width: SizeSpacing6,
}
: fullWidth
Expand All @@ -370,7 +370,7 @@ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(
}
: {}),
...(fullWidth ? { maxWidth: '100%', width: '100%' } : {}),
...(asLink ? { color: ColorTextDark } : {}),
...(asLink && isTextVariant ? { color: ColorTextDark } : {}),
}
: undefined

Expand Down

0 comments on commit d6f56fc

Please sign in to comment.