Skip to content

Commit

Permalink
Deprecate bg-gradient-variant mixin (#30594)
Browse files Browse the repository at this point in the history
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
  • Loading branch information
MartijnCuppens and XhmikosR committed Apr 18, 2020
1 parent f5ec0db commit 9f7fc4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion scss/mixins/_background-variant.scss
Expand Up @@ -15,8 +15,9 @@
@include deprecate("The `bg-variant` mixin", "v4.4.0", "v5", $ignore-warning);
}

@mixin bg-gradient-variant($parent, $color) {
@mixin bg-gradient-variant($parent, $color, $ignore-warning: false) {
#{$parent} {
background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x !important;
}
@include deprecate("The `bg-gradient-variant` mixin", "v4.4.2", "v5", $ignore-warning);
}
2 changes: 1 addition & 1 deletion scss/utilities/_background.scss
Expand Up @@ -6,7 +6,7 @@

@if $enable-gradients {
@each $color, $value in $theme-colors {
@include bg-gradient-variant(".bg-gradient-#{$color}", $value);
@include bg-gradient-variant(".bg-gradient-#{$color}", $value, true);
}
}

Expand Down

0 comments on commit 9f7fc4a

Please sign in to comment.