Skip to content

Commit

Permalink
Prevent extraneous whitespace around date time inputs in Webkit (#37350)
Browse files Browse the repository at this point in the history
* Prevent extraneous whitespace around date time inputs in Webkit

Closes #34433

* Updated bundlewatch config
  • Loading branch information
stephenreay authored Oct 30, 2022
1 parent 8fd4c3e commit 4b54d22
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scss/forms/_form-control.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@
height: if(unit($input-line-height) == "", $input-line-height * 1em, $input-line-height);
}

// Prevent excessive date input height in Webkit
// https://github.com/twbs/bootstrap/issues/34433
&::-webkit-datetime-edit {
display: block;
padding: 0;
}

// Placeholder
&::placeholder {
color: $input-placeholder-color;
Expand Down

0 comments on commit 4b54d22

Please sign in to comment.