diff --git a/scss/mixins/_background-variant.scss b/scss/mixins/_background-variant.scss index 51dc15091f..89b8849b1c 100644 --- a/scss/mixins/_background-variant.scss +++ b/scss/mixins/_background-variant.scss @@ -2,7 +2,7 @@ // Contextual backgrounds -@mixin bg-variant($parent, $color) { +@mixin bg-variant($parent, $color, $ignore-warning: false) { #{$parent} { background-color: $color !important; } @@ -12,7 +12,7 @@ background-color: darken($color, 10%) !important; } } - @include deprecate("The `bg-variant` mixin", "v4.3.2", "v5"); + @include deprecate("The `bg-variant` mixin", "v4.3.2", "v5", $ignore-warning); } @mixin bg-gradient-variant($parent, $color) { diff --git a/scss/utilities/_background.scss b/scss/utilities/_background.scss index 1f18b2f3f3..a997b1bdda 100644 --- a/scss/utilities/_background.scss +++ b/scss/utilities/_background.scss @@ -1,7 +1,7 @@ // stylelint-disable declaration-no-important @each $color, $value in $theme-colors { - @include bg-variant(".bg-#{$color}", $value); + @include bg-variant(".bg-#{$color}", $value, true); } @if $enable-gradients {