Fix icon button disabled border (#7607)
<img width="538" alt="Capture d’écran 2024-10-11 à 17 34 22" src="https://github.com/user-attachments/assets/c4a0dfb9-65cc-453a-af4b-476acf063504">
This commit is contained in:
@ -33,11 +33,9 @@ const StyledButton = styled.button<
|
|||||||
case 'default':
|
case 'default':
|
||||||
return css`
|
return css`
|
||||||
background: ${theme.background.secondary};
|
background: ${theme.background.secondary};
|
||||||
border-color: ${!disabled
|
border-color: ${focus
|
||||||
? focus
|
? theme.color.blue
|
||||||
? theme.color.blue
|
: theme.background.transparent.light};
|
||||||
: theme.background.transparent.light
|
|
||||||
: 'transparent'};
|
|
||||||
border-width: ${!disabled && focus ? '1px 1px !important' : 0};
|
border-width: ${!disabled && focus ? '1px 1px !important' : 0};
|
||||||
box-shadow: ${!disabled && focus
|
box-shadow: ${!disabled && focus
|
||||||
? `0 0 0 3px ${theme.accent.tertiary}`
|
? `0 0 0 3px ${theme.accent.tertiary}`
|
||||||
|
|||||||
Reference in New Issue
Block a user