File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 61
61
visibility : hidden ;
62
62
}
63
63
64
- // Fixes an issue on iOS where the following input types will collapse to 1px,
65
- // if they're empty, because we've overridden their background color.
66
- // See: https://stackoverflow.com/questions/18381594/input-type-date-appearance-in-safari-on-ios
67
64
& [type = ' date' ],
68
65
& [type = ' datetime' ],
69
66
& [type = ' datetime-local' ],
70
67
& [type = ' month' ],
71
68
& [type = ' week' ],
72
69
& [type = ' time' ] {
70
+ // Due to the native input masking these inputs can be slightly taller than
71
+ // the plain text inputs. We normalize it by resetting the line height.
72
+ line-height : 1 ;
73
+
74
+ // Fixes an issue on iOS where the following input types will collapse to 1px,
75
+ // if they're empty, because we've overridden their background color.
76
+ // See: https://stackoverflow.com/questions/18381594/input-type-date-appearance-in-safari-on-ios
73
77
& ::after {
74
78
content : ' ' ;
75
79
white-space : pre ;
You can’t perform that action at this time.
0 commit comments