Skip to content

Commit

Permalink
Prevent extraneous whitespace around date time inputs in Webkit
Browse files Browse the repository at this point in the history
Closes twbs#34433
  • Loading branch information
stephenreay committed Oct 21, 2022
1 parent 39bbca5 commit aeb24ab
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 aeb24ab

Please sign in to comment.