Skip to content
Snippets Groups Projects
Commit b36d3caa authored by Antoine Roy's avatar Antoine Roy
Browse files

textAlign center on Time Input

parent 3706d133
Branches
No related tags found
1 merge request!7Change on the slide bar's UI from pluggin annotation
......@@ -57,9 +57,10 @@ class HMSInput extends Component {
name="hours"
value={hours}
onChange={this.someChange}
inputProps={{ style: {textAlign: 'center'} }}
/>
<Input className={classes.input} type="number" min="0" max="59" name="minutes" value={minutes} onChange={this.someChange} />
<Input className={classes.input} type="number" min="0" max="59" name="seconds" value={seconds} onChange={this.someChange} />
<Input className={classes.input} type="number" min="0" max="59" name="minutes" value={minutes} onChange={this.someChange} inputProps={{ style: {textAlign: 'center'} }}/>
<Input className={classes.input} type="number" min="0" max="59" name="seconds" value={seconds} onChange={this.someChange} inputProps={{ style: {textAlign: 'center'} }}/>
</div>
</div>
);
......@@ -71,7 +72,6 @@ const styles = (theme) => ({
root: {
alignItems: 'center',
display: 'flex',
justifyContent: 'end',
},
// eslint-disable-next-line sort-keys
flexcol: {
......@@ -83,8 +83,6 @@ const styles = (theme) => ({
input: {
height: 'fit-content',
margin: '2px',
textAlign: 'center',
width: '4ch',
// remove arrow from field for Firefox
'& input[type=number]': {
'-moz-appearance': 'textfield',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment