diff options
| author | Andrew Luca <[email protected]> | 2018-01-18 01:30:42 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2018-01-18 01:30:42 +0200 |
| commit | 4c96f58e31b4f6aa40b4027384c8c52476fd8c68 (patch) | |
| tree | 45c22a83da566e849add2428b40d0003b99cb23c | |
| parent | 18f691567a1bd8cee7831b0c9a79a03254eeaec2 (diff) | |
| download | bootstrap-4c96f58e31b4f6aa40b4027384c8c52476fd8c68.tar.xz bootstrap-4c96f58e31b4f6aa40b4027384c8c52476fd8c68.zip | |
Fix input height border (#25331)
When changing `$input-border-width`, `$input-height-border` does not change and `select.form-control` `custom-select` `custom-file` will still have `$input-height` which is resolved from `$input-btn-border-width`
This will work in cases when want controls with border, and buttons without.
Temporary fix will be to override 2 variables
```
$input-border-width: 2px !default;
// which is
// $input-height-border: $input-btn-border-width * 2 !default;
$input-height-border: $input-border-width * 2 !default;
```
| -rw-r--r-- | scss/_variables.scss | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/_variables.scss b/scss/_variables.scss index 24e141772..be580deb3 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -412,7 +412,7 @@ $input-focus-box-shadow: $input-btn-focus-box-shadow !default; $input-placeholder-color: $gray-600 !default; -$input-height-border: $input-btn-border-width * 2 !default; +$input-height-border: $input-border-width * 2 !default; $input-height-inner: ($font-size-base * $input-btn-line-height) + ($input-btn-padding-y * 2) !default; $input-height: calc(#{$input-height-inner} + #{$input-height-border}) !default; |
