Fix Chip font-weight (#1242)

* Fix Chip font-weight

* fix ===
This commit is contained in:
Weiko 2023-08-16 16:28:16 -07:00 committed by GitHub
parent dbf01c759d
commit 1e277ba950
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,8 @@ const StyledContainer = styled.div<Partial<OwnProps>>`
? 'pointer'
: 'inherit'};
display: inline-flex;
font-weight: ${({ theme }) => theme.font.weight.medium};
font-weight: ${({ theme, accent }) =>
accent === ChipAccent.TextSecondary ? theme.font.weight.medium : 'inherit'};
gap: ${({ theme }) => theme.spacing(1)};
height: ${({ size }) => (size === ChipSize.Large ? '16px' : '12px')};