Use default color in Loader component for CSS variable (#12844)
Fixes a regression introduced by https://github.com/twentyhq/twenty/pull/11639 cc @AMoreaux ## Before  ## After  https://github.com/user-attachments/assets/875c6c7e-3fc3-44bf-bb17-69ca362c1145
This commit is contained in:
committed by
GitHub
parent
f5c179a8bf
commit
baaec81a91
@@ -15,7 +15,9 @@ const StyledLoaderContainer = styled.div<{
|
||||
border-radius: ${({ theme }) => theme.border.radius.pill};
|
||||
border: 1px solid
|
||||
${({ color, theme }) =>
|
||||
color ? theme.tag.text[color] : `var(--tw-button-color)`};
|
||||
color
|
||||
? theme.tag.text[color]
|
||||
: `var(--tw-button-color, ${theme.font.color.tertiary})`};
|
||||
overflow: hidden;
|
||||
`;
|
||||
|
||||
@@ -23,7 +25,9 @@ const StyledLoader = styled(motion.div)<{
|
||||
color?: ThemeColor;
|
||||
}>`
|
||||
background-color: ${({ color, theme }) =>
|
||||
color ? theme.tag.text[color] : `var(--tw-button-color)`};
|
||||
color
|
||||
? theme.tag.text[color]
|
||||
: `var(--tw-button-color, ${theme.font.color.tertiary})`};
|
||||
border-radius: ${({ theme }) => theme.border.radius.pill};
|
||||
height: 8px;
|
||||
width: 8px;
|
||||
|
||||
Reference in New Issue
Block a user