Skip to content

Commit

Permalink
#2573 - remove increment / decrement arrows by CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Sep 17, 2024
1 parent 9f0bcf9 commit 9d98a8e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
10 changes: 0 additions & 10 deletions wormhole-connect/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,3 @@
.walletconnect-modal__mobile__toggle {
color: #000000;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type='number'] {
-moz-appearance: textfield;
/* Firefox */
}
11 changes: 11 additions & 0 deletions wormhole-connect/src/views/v2/Bridge/AmountInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,15 @@ const useStyles = makeStyles()((theme) => ({
balance: {
color: theme.palette.text.secondary,
},
amountInput: {
'&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {
'-webkit-appearance': 'none',
margin: 0,
},
'&[type="number"]': {
'-moz-appearance': 'textfield',
},
},
}));

type Props = {
Expand Down Expand Up @@ -200,6 +209,7 @@ const AmountInput = (props: Props) => {
// See for details: https://github.com/mui/material-ui/issues/7960
e.currentTarget.blur();
},
step: '0.1',
}}
placeholder="0"
variant="standard"
Expand All @@ -224,6 +234,7 @@ const AmountInput = (props: Props) => {
</InputAdornment>
),
type: 'number',
classes: { input: classes.amountInput },
}}
/>
</CardContent>
Expand Down

0 comments on commit 9d98a8e

Please sign in to comment.