mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-31 17:11:48 +02:00
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 <xhmikosr@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user