fix: ignore warnings for deprecation and add TODO for removing dependency (#2852)

pull/2858/head
Shawn Heide 2020-06-27 08:56:03 -07:00 committed by GitHub
parent 50a8489e10
commit 2458663439
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -33,7 +33,9 @@
// Background Gradient Variant
@mixin background-gradient-variant($name, $color) {
.bg-gradient-#{$name} {
@include bg-gradient-variant("&", $color);
// Ignore warning for Bootstrap 4 deprecation
// TODO: remove bg-gradient-variant dependencies
@include bg-gradient-variant("&", $color, true);
color: color-yiq($color);
&.btn {
@ -46,7 +48,9 @@
}
&:hover {
@include bg-gradient-variant("&", darken($color, 7.5%));
// Ignore warning for Bootstrap 4 deprecation
// TODO: remove bg-gradient-variant dependencies
@include bg-gradient-variant("&", darken($color, 7.5%), true);
border-color: darken($color, 10%);
color: darken(color-yiq($color), 7.5%);
}
@ -55,7 +59,9 @@
&:not(:disabled):not(.disabled).active,
&:active,
&.active {
@include bg-gradient-variant("&", darken($color, 10%));
// Ignore warning for Bootstrap 4 deprecation
// TODO: remove bg-gradient-variant dependencies
@include bg-gradient-variant("&", darken($color, 10%), true);
border-color: darken($color, 12.5%);
color: color-yiq(darken($color, 10%));
}