]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix validation feedback icon in select multiple
authorGeremia Taglialatela <tagliala.dev@gmail.com>
Fri, 19 Mar 2021 20:52:58 +0000 (21:52 +0100)
committerMark Otto <otto@github.com>
Fri, 2 Apr 2021 21:11:35 +0000 (14:11 -0700)
Validation feedback for `<select multiple>` should look like
`<textarea>`.

The previous implementation was placing the validation icon in the
middle of the select field together with the single select arrow, that
is not supposed to be part of this kind of inputs

scss/mixins/_forms.scss

index a1e0849df01a81ac7497b1341559cc3589161932..612f94d17cb5935765b92c43d7d9b5489549f3da 100644 (file)
         background-image: escape-svg($form-select-indicator), escape-svg($icon);
         background-position: $form-select-bg-position, $form-select-feedback-icon-position;
         background-size: $form-select-bg-size, $form-select-feedback-icon-size;
+
+        &[multiple],
+        &[size]:not([size="1"]) {
+          padding-right: $input-height-inner;
+          background-image: escape-svg($icon);
+          background-position: top $input-height-inner-quarter right $input-height-inner-quarter;
+          background-size: $form-select-feedback-icon-size;
+        }
       }
 
       &:focus {