File tree 2 files changed +9
-13
lines changed
2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change 34
34
user-select : none ;
35
35
padding : 1rem 1rem 1.5rem 1rem ;
36
36
37
- input [type = number ] {
37
+ input [type = text ] {
38
38
height : 4rem ;
39
39
color : var (--md-sys-color-secondary );
40
- border-bottom : 0 ;
40
+ border-bottom : 0 px ;
41
41
font-size : 4rem ;
42
42
direction : ltr ;
43
43
}
49
49
cursor : pointer ;
50
50
}
51
51
52
- input [type = number ].timepicker-input-hours {
52
+ input [type = text ].timepicker-input-hours {
53
53
text-align : right ;
54
54
width : 28% ;
55
55
margin-right : 3px ;
56
56
}
57
57
58
- input [type = number ].timepicker-input-minutes {
58
+ input [type = text ].timepicker-input-minutes {
59
59
width : 33% ;
60
60
margin-left : 3px ;
61
61
}
62
62
63
- input [type = number ].text-primary {
63
+ input [type = text ].text-primary {
64
64
color : var (--md-sys-color-on-background );
65
65
}
66
66
@@ -217,12 +217,8 @@ input[type=number].text-primary {
217
217
margin-top : 1.2rem ;
218
218
}
219
219
220
- input [type = number ].timepicker-input-hours {
221
- min-width : 6rem ;
222
- }
223
-
224
- input [type = number ].timepicker-input-minutes {
225
- min-width : 6.5rem ;
220
+ input [type = text ].timepicker-input-minutes {
221
+ min-width : 5.3rem ;
226
222
}
227
223
228
224
.timepicker-modal .am-btn ,
Original file line number Diff line number Diff line change @@ -819,9 +819,9 @@ export class Timepicker extends Component<TimepickerOptions> {
819
819
<div class="timepicker-digital-display">
820
820
<div class="timepicker-text-container">
821
821
<div class="timepicker-display-column">
822
- <input type="number" maxlength="2" autofocus class="timepicker-input-hours text-primary"/>
822
+ <input type="number" maxlength="2" autofocus class="timepicker-input-hours text-primary" min="1" max="12" />
823
823
:
824
- <input type="number" maxlength="2" class="timepicker-input-minutes"/>
824
+ <input type="number" maxlength="2" class="timepicker-input-minutes" min="0" max="59" />
825
825
</div>
826
826
<div class="timepicker-display-column timepicker-display-am-pm">
827
827
<div class="timepicker-span-am-pm"></div>
You can’t perform that action at this time.
0 commit comments