From 7e7784f4445541c0fc107113fbcb3d195a511ad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bosi?= <71827178+bosiraphael@users.noreply.github.com> Date: Fri, 11 Oct 2024 18:08:12 +0200 Subject: [PATCH] Fix icon button disabled border (#7607) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Capture d’écran 2024-10-11 à 17 34 22 --- .../src/modules/ui/input/button/components/IconButton.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/twenty-front/src/modules/ui/input/button/components/IconButton.tsx b/packages/twenty-front/src/modules/ui/input/button/components/IconButton.tsx index e5e83551cdcc..dae5a8f1bc52 100644 --- a/packages/twenty-front/src/modules/ui/input/button/components/IconButton.tsx +++ b/packages/twenty-front/src/modules/ui/input/button/components/IconButton.tsx @@ -33,11 +33,9 @@ const StyledButton = styled.button< case 'default': return css` background: ${theme.background.secondary}; - border-color: ${!disabled - ? focus - ? theme.color.blue - : theme.background.transparent.light - : 'transparent'}; + border-color: ${focus + ? theme.color.blue + : theme.background.transparent.light}; border-width: ${!disabled && focus ? '1px 1px !important' : 0}; box-shadow: ${!disabled && focus ? `0 0 0 3px ${theme.accent.tertiary}`