Fix action bar button danger background and gap (#2711)

fix action bar button danger background and gap

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
brendanlaschke 2023-11-28 20:23:36 +01:00 committed by GitHub
parent 18d30c45c4
commit fd969de311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,14 +29,14 @@ const StyledButton = styled.div<{ accent: ActionBarItemAccent }>`
&:hover { &:hover {
background: ${({ theme, accent }) => background: ${({ theme, accent }) =>
accent === 'danger' accent === 'danger'
? theme.tag.background.red ? theme.background.danger
: theme.background.tertiary}; : theme.background.tertiary};
} }
`; `;
const StyledButtonLabel = styled.div` const StyledButtonLabel = styled.div`
font-weight: ${({ theme }) => theme.font.weight.medium}; font-weight: ${({ theme }) => theme.font.weight.medium};
margin-left: ${({ theme }) => theme.spacing(2)}; margin-left: ${({ theme }) => theme.spacing(1)};
`; `;
export const ActionBarItem = ({ export const ActionBarItem = ({