From 4b54d22483c7fb4b7d86f50ffcbbf31da833e243 Mon Sep 17 00:00:00 2001 From: Stephen Reay Date: Mon, 31 Oct 2022 05:02:10 +0700 Subject: Prevent extraneous whitespace around date time inputs in Webkit (#37350) * Prevent extraneous whitespace around date time inputs in Webkit Closes twbs/bootstrap#34433 * Updated bundlewatch config --- scss/forms/_form-control.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scss/forms/_form-control.scss b/scss/forms/_form-control.scss index e707c57ea2..c81e3b4ea0 100644 --- a/scss/forms/_form-control.scss +++ b/scss/forms/_form-control.scss @@ -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; -- cgit v1.2.3