Skip to content

Commit

Permalink
magic
Browse files Browse the repository at this point in the history
  • Loading branch information
RVassili authored and roro-lv committed Apr 4, 2022
1 parent 694c6c6 commit 0512ff4
Showing 1 changed file with 27 additions and 21 deletions.
48 changes: 27 additions & 21 deletions src/frontend/components/Button/ButtonLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,27 +69,33 @@ export const ButtonLayout = ({
return (
<Box align="center" fill>
{Icon && (
<Stack anchor="bottom-right" fill>
<IconBox screenSize={size}>
<Icon focusColor={rectColor} height="100%" iconColor={iconColor} />
</IconBox>
{badge && (
<Box
align="center"
background="white"
border={{
color: tintColor,
size: 'xsmall',
}}
pad={{ horizontal: '3px', vertical: '1px' }}
round="6px"
>
<StyledTextBadge color={tintColor} size="0.688rem">
{badge}
</StyledTextBadge>
</Box>
)}
</Stack>
<Box flex>
<Stack anchor="bottom-right" fill>
<IconBox screenSize={size}>
<Icon
focusColor={rectColor}
height="100%"
iconColor={iconColor}
/>
</IconBox>
{badge && (
<Box
align="center"
background="white"
border={{
color: tintColor,
size: 'xsmall',
}}
pad={{ horizontal: '3px', vertical: '1px' }}
round="6px"
>
<StyledTextBadge color={tintColor} size="0.688rem">
{badge}
</StyledTextBadge>
</Box>
)}
</Stack>
</Box>
)}

{label && (
Expand Down

0 comments on commit 0512ff4

Please # to comment.