Skip to content

Commit

Permalink
fix swap input focus border width
Browse files Browse the repository at this point in the history
  • Loading branch information
SorinC6 committed Jul 5, 2024
1 parent 5689583 commit 86bb098
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/yoroi-extension/app/components/swap/SwapInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function SwapInput({
component="fieldset"
sx={{
borderStyle: 'solid',
borderWidth: tokenInfo.id?.length > 0 && error ? '2px' : '1px',
borderWidth: (tokenInfo.id?.length > 0 && error) || focusState.value ? '2px' : '1px',
borderColor: error ? 'magenta.500' : isFocusedColor,
borderRadius: '8px',
p: '16px',
Expand All @@ -85,6 +85,7 @@ export default function SwapInput({
bgcolor: 'common.white',
columnGap: '6px',
rowGap: '8px',
maxHeight: '95px',
'&:hover': {
borderColor: !error && 'grayscale.max',
},
Expand Down

0 comments on commit 86bb098

Please sign in to comment.