aboutsummaryrefslogtreecommitdiff
path: root/scss/forms
diff options
context:
space:
mode:
authorGaĆ«l Poupard <[email protected]>2021-07-14 08:19:28 +0200
committerGitHub <[email protected]>2021-07-14 09:19:28 +0300
commit054f8781a86b16c3793eaf424093a5d4cfb37114 (patch)
tree8de1d62e7a07ede6e4a9e9c1b43865a18f230a8e /scss/forms
parente45b25e08ed13ae063a9d2f2382f6459bc564cff (diff)
downloadbootstrap-054f8781a86b16c3793eaf424093a5d4cfb37114.tar.xz
bootstrap-054f8781a86b16c3793eaf424093a5d4cfb37114.zip
fix(forms): prevent color control from shrinking (#34445)
* fix(forms): prevent color control from shrinking Fixes #34195 Setting `min-width` alongside `max-width` wouldn't make any sense IMHO. The only concern I have is whether we should introduce a dedicated variable for said width? * feat(forms): introduce ` $form-color-width` * feat(forms): use ` $form-color-width` Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'scss/forms')
-rw-r--r--scss/forms/_form-control.scss2
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/forms/_form-control.scss b/scss/forms/_form-control.scss
index 9728b91f3..96423c530 100644
--- a/scss/forms/_form-control.scss
+++ b/scss/forms/_form-control.scss
@@ -199,7 +199,7 @@ textarea {
// stylelint-enable selector-no-qualifying-type
.form-control-color {
- max-width: 3rem;
+ width: $form-color-width;
height: auto; // Override fixed browser height
padding: $input-padding-y;