From 054f8781a86b16c3793eaf424093a5d4cfb37114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Poupard?= Date: Wed, 14 Jul 2021 08:19:28 +0200 Subject: 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 --- scss/forms/_form-control.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scss/forms') 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; -- cgit v1.2.3