I've got problem with converting CSS code for hiding spin box of number input for JSS . My question is how to appropriately convert this code that it will match JSS?
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type=number] {
-moz-appearance:textfield;
}
input: {
'&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {
'-webkit-appearance': 'none',
'-moz-appearance': 'none',
'margin': 0
},
'&[type=number]': {
'-webkit-appearance': 'textfield',
'-moz-appearance': 'textfield'
}
}
This should work.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.