Skip to content

Commit

Permalink
Ignore the bg-variant deprecation warning in our files.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartijnCuppens authored and XhmikosR committed Jul 10, 2019
1 parent 23d7dd6 commit e61d609
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scss/mixins/_background-variant.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// Contextual backgrounds

@mixin bg-variant($parent, $color) {
@mixin bg-variant($parent, $color, $ignore-warning: false) {
#{$parent} {
background-color: $color !important;
}
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion scss/utilities/_background.scss
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit e61d609

Please sign in to comment.