parent
be452a0ed3
commit
327bfca418
1 changed files with 5 additions and 3 deletions
|
|
@ -26,14 +26,16 @@
|
||||||
@include deprecate("The `form-control-focus()` mixin", "v4.3.2", "v5", $ignore-warning);
|
@include deprecate("The `form-control-focus()` mixin", "v4.3.2", "v5", $ignore-warning);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This mixin uses an `if()` technique to be compatible with Dart Sass
|
||||||
|
// See https://github.com/sass/sass/issues/1873#issuecomment-152293725 for more details
|
||||||
@mixin form-validation-state-selector($state) {
|
@mixin form-validation-state-selector($state) {
|
||||||
@if ($state == "valid" or $state == "invalid") {
|
@if ($state == "valid" or $state == "invalid") {
|
||||||
.was-validated &:#{$state},
|
.was-validated #{if(&, "&", "")}:#{$state},
|
||||||
&.is-#{$state} {
|
#{if(&, "&", "")}.is-#{$state} {
|
||||||
@content;
|
@content;
|
||||||
}
|
}
|
||||||
} @else {
|
} @else {
|
||||||
&.is-#{$state} {
|
#{if(&, "&", "")}.is-#{$state} {
|
||||||
@content;
|
@content;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue