Skip to content

Commit

Permalink
Fix icon button disabled border (#7607)
Browse files Browse the repository at this point in the history
<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">
  • Loading branch information
bosiraphael authored Oct 11, 2024
1 parent 8cf3262 commit 7e7784f
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down

0 comments on commit 7e7784f

Please sign in to comment.