Skip to content

Commit

Permalink
Fix Badge styling
Browse files Browse the repository at this point in the history
  • Loading branch information
vineethasok committed Oct 20, 2023
1 parent 7b2219e commit 2999b6f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/Badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ const SvgContainer = styled.svg<{ $state?: BadgeState; $size?: BadgeSize }>`
`;
const BadgeContent = styled(EllipsisContainer)<{
$state?: BadgeState;
$size?: BadgeSize;
size?: BadgeSize;
}>`
width: auto;
overflow: hidden;
svg {
${({ $state = "default", $size = "md", theme }) => `
${({ $state = "default", size = "md", theme }) => `
color: ${theme.click.badge.color.text[$state]};
height: ${theme.click.badge.icon[$size].size.height};
width: ${theme.click.badge.icon[$size].size.width};
height: ${theme.click.badge.icon[size].size.height};
width: ${theme.click.badge.icon[size].size.width};
gap: inherit;
`}
}
Expand Down Expand Up @@ -98,6 +98,7 @@ export const Badge = ({
icon={icon}
iconDir={iconDir}
size={size}
$state={state}
>
{text}
</BadgeContent>
Expand Down

0 comments on commit 2999b6f

Please sign in to comment.