We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f954a0 commit 529c0bcCopy full SHA for 529c0bc
src/lib/input/input.scss
@@ -37,6 +37,22 @@
37
display: none;
38
}
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.
0 commit comments