aboutsummaryrefslogtreecommitdiff
path: root/scss/forms
diff options
context:
space:
mode:
authorStephen Reay <[email protected]>2022-10-31 05:02:10 +0700
committerGitHub <[email protected]>2022-10-30 18:02:10 -0400
commit4b54d22483c7fb4b7d86f50ffcbbf31da833e243 (patch)
tree96b4258d005758445bb1faf3105b69803425d720 /scss/forms
parent8fd4c3e12f9e4ca63ab2ce70d59bc620af83de09 (diff)
downloadbootstrap-4b54d22483c7fb4b7d86f50ffcbbf31da833e243.tar.xz
bootstrap-4b54d22483c7fb4b7d86f50ffcbbf31da833e243.zip
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
Diffstat (limited to 'scss/forms')
-rw-r--r--scss/forms/_form-control.scss7
1 files changed, 7 insertions, 0 deletions
diff --git a/scss/forms/_form-control.scss b/scss/forms/_form-control.scss
index e707c57ea..c81e3b4ea 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;