Skip to content

Commit 92a5f0e

Browse files
crisbetojelbourn
authored andcommitted
fix(form-field): native date/time input taller than text input (#13321)
Fixes the `type="date"` and `type="time"` inputs inside a form field making the field taller than a `type="input"`. Fixes #13317.
1 parent 5c0a061 commit 92a5f0e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib/input/input.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,14 @@
7676
}
7777
}
7878

79+
// Reduce the size of the native buttons in a date/time input,
80+
// because they can increase the height of the input (see #13317).
81+
&::-webkit-inner-spin-button,
82+
&::-webkit-calendar-picker-indicator,
83+
&::-webkit-clear-button {
84+
font-size: 0.75em;
85+
}
86+
7987
@include input-placeholder {
8088
// Delay the transition until the label has animated about a third of the way through, in
8189
// order to prevent the placeholder from overlapping for a split second.

0 commit comments

Comments
 (0)