feat: change input to number input

This commit is contained in:
fragosti
2018-12-10 17:30:32 -08:00
parent d578b4959d
commit 6e54514013
2 changed files with 5 additions and 0 deletions

View File

@@ -135,6 +135,7 @@ export class ScalingInput extends React.Component<ScalingInputProps, ScalingInpu
const phase = ScalingInput.getPhaseFromProps(this.props);
return (
<Input
type="number"
ref={this._inputRef as any}
fontColor={fontColor}
onChange={onChange}

View File

@@ -32,6 +32,10 @@ export const Input =
color: ${props => props.theme[props.fontColor || 'white']} !important;
opacity: 0.5 !important;
}
&::-webkit-outer-spin-button, &::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
}
`;