diff options
author | Gaƫl Poupard <ffoodd@users.noreply.github.com> | 2021-06-03 19:02:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-03 19:02:46 +0300 |
commit | dbda13d5ef6897be41f1e872667f6aa30860efb4 (patch) | |
tree | 396be94ef079c5c72c92443ba592aec244d70f81 /scss | |
parent | c98657b8303150bfda3bdea750055b83a29b27a3 (diff) |
fix(forms): unitless `line-height` for floating labels (#34161)
Co-authored-by: Mark Otto <markd.otto@gmail.com>
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
Diffstat (limited to 'scss')
-rw-r--r-- | scss/_variables.scss | 1 | ||||
-rw-r--r-- | scss/forms/_floating-labels.scss | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/scss/_variables.scss b/scss/_variables.scss index 11819f4400..93ccb25a56 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -859,6 +859,7 @@ $form-file-button-hover-bg: shade-color($form-file-button-bg, 5%) !default // scss-docs-start form-floating-variables $form-floating-height: add(3.5rem, $input-height-border) !default; +$form-floating-line-height: 1.25 !default; $form-floating-padding-x: $input-padding-x !default; $form-floating-padding-y: 1rem !default; $form-floating-input-padding-t: 1.625rem !default; diff --git a/scss/forms/_floating-labels.scss b/scss/forms/_floating-labels.scss index 09d9294dc5..2f42954803 100644 --- a/scss/forms/_floating-labels.scss +++ b/scss/forms/_floating-labels.scss @@ -4,6 +4,7 @@ > .form-control, > .form-select { height: $form-floating-height; + line-height: $form-floating-line-height; } > label { |