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 9e35bf0 commit 288238eCopy full SHA for 288238e
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
@include input-placeholder {
57
// Delay the transition until the label has animated about a third of the way through, in
58
// order to prevent the placeholder from overlapping for a split second.
0 commit comments