Unverified Commit 9f7fc4ac authored by Martijn Cuppens's avatar Martijn Cuppens Committed by GitHub
Browse files

Deprecate `bg-gradient-variant` mixin (#30594)


Co-authored-by: default avatarXhmikosR <xhmikosr@gmail.com>
parent f5ec0dbf
Showing with 3 additions and 2 deletions
+3 -2
...@@ -15,8 +15,9 @@ ...@@ -15,8 +15,9 @@
@include deprecate("The `bg-variant` mixin", "v4.4.0", "v5", $ignore-warning); @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} { #{$parent} {
background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x !important; 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);
} }
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
@if $enable-gradients { @if $enable-gradients {
@each $color, $value in $theme-colors { @each $color, $value in $theme-colors {
@include bg-gradient-variant(".bg-gradient-#{$color}", $value); @include bg-gradient-variant(".bg-gradient-#{$color}", $value, true);
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment