Fix wrong font in chips and tabs (#10825)

Fix wrong font in chips and tabs

---------

Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
Raphaël Bosi
2025-03-13 14:44:04 +01:00
committed by GitHub
parent 885b2d62d9
commit 794110f9dd
3 changed files with 4 additions and 1 deletions

View File

@ -7,6 +7,7 @@ const StyledChip = styled.button<{
withText: boolean;
onClick?: () => void;
}>`
all: unset;
align-items: center;
justify-content: center;
background: ${({ theme }) => theme.background.transparent.light};
@ -19,6 +20,7 @@ const StyledChip = styled.button<{
/* If the chip has text, we add extra padding to have a more balanced design */
padding: 0
${({ theme, withText }) => (withText ? theme.spacing(2) : theme.spacing(1))};
font-family: inherit;
font-size: ${({ theme }) => theme.font.size.sm};
font-weight: ${({ theme }) => theme.font.weight.medium};
line-height: ${({ theme }) => theme.text.lineHeight.lg};