fix: favourite button background (#2128)

update:favourite button background
This commit is contained in:
Kirthi Bagrecha Jain 2023-10-19 21:24:36 +05:30 committed by GitHub
parent 2f0da64e1b
commit 5ce8b4c73c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,14 +196,10 @@ const StyledButton = styled.button<
`; `;
case 'danger': case 'danger':
return ` return `
background: ${ background: 'transparent';
!disabled ? theme.background.transparent.primary : 'transparent'
};
border-color: ${ border-color: ${
variant === 'secondary' variant === 'secondary'
? !disabled ? !disabled && theme.color.red20
? theme.color.red
: theme.color.red20
: focus : focus
? theme.color.red ? theme.color.red
: 'transparent' : 'transparent'