Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#2573 - remove increment / decrement arrows by CSS #2627

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading