Skip to content

Commit 3392fb7

Browse files
authored
💄 Tag - prevent icon shrinking (#1284)
1 parent eec5aef commit 3392fb7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/molecules/Tag/Tag.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@ const Container = styled.div<ContainerProps>`
2222
gap: ${spacings.x_small};
2323
background: ${({ $color }) => TAG_COLORS[$color].background};
2424
min-height: 24px;
25+
min-width: fit-content;
26+
2527
> span {
2628
color: ${({ $color, $textColor }) => $textColor ?? TAG_COLORS[$color].text};
2729
line-height: normal;
2830
}
2931
> svg {
32+
flex-shrink: 0;
3033
fill: ${({ $color, $iconColor }) => $iconColor ?? TAG_COLORS[$color].text};
3134
}
3235
`;

0 commit comments

Comments
 (0)