Skip to content

Commit 94ef116

Browse files
committed
(less) Merge pull request twbs#13651 from twbs/ios-temporal
update explanatory comment about iOS date/time inputs bug
2 parents dca72e5 + 869011e commit 94ef116

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

forms.less

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,11 @@ input[type="search"] {
165165
}
166166

167167

168-
// Special styles for iOS date input
168+
// Special styles for iOS temporal inputs
169169
//
170-
// In Mobile Safari, date inputs require a pixel line-height that matches the
170+
// In Mobile Safari, setting `display: block` on temporal inputs causes the
171+
// text within the input to become vertically misaligned.
172+
// As a workaround, we set a pixel line-height that matches the
171173
// given height of the input. Since this fucks up everything else, we have to
172174
// appropriately reset it for Internet Explorer and the size variations.
173175

0 commit comments

Comments
 (0)