]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Suppress text-hide deprecation warning (#26242)
authorAlexander Rechsteiner <github@wildmind.ch>
Mon, 16 Apr 2018 06:45:07 +0000 (08:45 +0200)
committerXhmikosR <xhmikosr@gmail.com>
Mon, 16 Apr 2018 06:45:07 +0000 (09:45 +0300)
scss/mixins/_text-hide.scss
scss/utilities/_text.scss

index 4b8f218b50802839e93eadd8e5a95e3e380d6c47..9ffab169f3b3671b128efe6be4ab6dac3e9c581b 100644 (file)
@@ -1,5 +1,5 @@
 // CSS image replacement
-@mixin text-hide() {
+@mixin text-hide($ignore-warning: false) {
   // stylelint-disable-next-line font-family-no-missing-generic-family-keyword
   font: 0/0 a;
   color: transparent;
@@ -7,5 +7,7 @@
   background-color: transparent;
   border: 0;
 
-  @warn "The `text-hide()` mixin has been deprecated as of v4.1.0. It will be removed entirely in v5.";
+  @if ($ignore-warning != true) {
+    @warn "The `text-hide()` mixin has been deprecated as of v4.1.0. It will be removed entirely in v5.";
+  }
 }
index 4f6eba506ca1728a5d2410d480cd23863e620c8f..9d96c46562ef4d943836b4ac5e73dd18f838b288 100644 (file)
@@ -54,5 +54,5 @@
 // Misc
 
 .text-hide {
-  @include text-hide();
+  @include text-hide($ignore-warning: true);
 }