Skip to content

The open alternative to Salesforce, designed for AI.

Fix icon button disabled border (#7607)

Raphaël Bosi7e7784f44455
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 e5e83551cdc..dae5a8f1bc5 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}`