Skip to content

Commit 194bc97

Browse files
committed
refactor(MultiSelect): improve validation handling
1 parent f643557 commit 194bc97

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

scss/forms/_form-multi-select.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@
113113
@include ltr-rtl("padding-right", ($form-multi-select-indicator-padding + $form-multi-select-cleaner-width + 2 * $form-multi-select-cleaner-padding-x));
114114
}
115115

116+
.was-validated .form-multi-select:invalid + &,
116117
&.is-invalid {
117118
--#{$prefix}form-multi-select-border-color: #{$form-feedback-invalid-color};
118119
}
119120

121+
.was-validated .form-multi-select:valid + &,
120122
&.is-valid {
121123
--#{$prefix}form-multi-select-border-color: #{$form-feedback-valid-color};
122124
}

scss/mixins/_banner.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
* Copyright (c) 2023 creativeLabs Łukasz Holeczek
55
* License (https://coreui.io/pro/license/)
66
*/
7-
}
7+
}

0 commit comments

Comments
 (0)