File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 37
37
display : none ;
38
38
}
39
39
40
+ // Fixes an issue on iOS where the following input types will collapse to 1px,
41
+ // if they're empty, because we've overridden their background color.
42
+ // See: https://stackoverflow.com/questions/18381594/input-type-date-appearance-in-safari-on-ios
43
+ & [type = ' date' ],
44
+ & [type = ' datetime' ],
45
+ & [type = ' datetime-local' ],
46
+ & [type = ' month' ],
47
+ & [type = ' week' ],
48
+ & [type = ' time' ] {
49
+ & ::after {
50
+ content : ' ' ;
51
+ white-space : pre ;
52
+ width : 1px ;
53
+ }
54
+ }
55
+
56
+ // Note that we can't use something like visibility: hidden or
57
+ // display: none, because IE ends up preventing the user from
58
+ // focusing the input altogether.
40
59
@include input-placeholder {
41
60
// Delay the transition until the label has animated about a third of the way through, in
42
61
// order to prevent the placeholder from overlapping for a split second.
You can’t perform that action at this time.
0 commit comments