From e61d609bc04c2a3f413c6e2732f1af3eafc7179c Mon Sep 17 00:00:00 2001 From: Martijn Cuppens Date: Thu, 27 Jun 2019 11:46:42 +0300 Subject: [PATCH] Ignore the bg-variant deprecation warning in our files. --- scss/mixins/_background-variant.scss | 4 ++-- scss/utilities/_background.scss | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 {