From 5ce8b4c73cdb376cda46b085b1f319d7168bea14 Mon Sep 17 00:00:00 2001 From: Kirthi Bagrecha Jain Date: Thu, 19 Oct 2023 21:24:36 +0530 Subject: [PATCH] fix: favourite button background (#2128) update:favourite button background --- .../src/modules/ui/input/button/components/IconButton.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/front/src/modules/ui/input/button/components/IconButton.tsx b/front/src/modules/ui/input/button/components/IconButton.tsx index bbc8c3cf1..66560d4e9 100644 --- a/front/src/modules/ui/input/button/components/IconButton.tsx +++ b/front/src/modules/ui/input/button/components/IconButton.tsx @@ -196,14 +196,10 @@ const StyledButton = styled.button< `; case 'danger': return ` - background: ${ - !disabled ? theme.background.transparent.primary : 'transparent' - }; + background: 'transparent'; border-color: ${ variant === 'secondary' - ? !disabled - ? theme.color.red - : theme.color.red20 + ? !disabled && theme.color.red20 : focus ? theme.color.red : 'transparent'