]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add deprecation warning
authorMartijn Cuppens <martijn.cuppens@gmail.com>
Sat, 17 Aug 2019 19:51:12 +0000 (21:51 +0200)
committerMartijn Cuppens <martijn.cuppens@gmail.com>
Mon, 26 Aug 2019 07:29:50 +0000 (09:29 +0200)
scss/mixins/_text-emphasis.scss
scss/utilities/_text.scss

index 1739e2d08d78d38030dfa94947f4798984cde73a..5eb8a5515412053d335ca360aa51f0722616b80f 100644 (file)
@@ -2,7 +2,7 @@
 
 // Typography
 
-@mixin text-emphasis-variant($parent, $color) {
+@mixin text-emphasis-variant($parent, $color, $ignore-warning: false) {
   #{$parent} {
     color: $color !important;
   }
@@ -13,4 +13,5 @@
       }
     }
   }
+  @include deprecate("`text-emphasis-variant()`", "v4.4.0", "v5", $ignore-warning);
 }
index ce1565032baa0d9414cb6d677df3e544f35ced17..5d0f1c845f8d3f9ee60048532da547042c04cbc3 100644 (file)
@@ -45,7 +45,7 @@
 .text-white { color: $white !important; }
 
 @each $color, $value in $theme-colors {
-  @include text-emphasis-variant(".text-#{$color}", $value);
+  @include text-emphasis-variant(".text-#{$color}", $value, true);
 }
 
 .text-body { color: $body-color !important; }