Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Rechsteiner <github@wildmind.ch>2018-04-16 09:45:07 +0300
committerXhmikosR <xhmikosr@gmail.com>2018-04-16 09:45:07 +0300
commit056e28d9e084c134f6c58ad0ede31467a51294e6 (patch)
tree82ae0431d2d04553d9cbad2c918dda6dcd37cce6
parent555333a20e160245f795299c080b483e083cc44d (diff)
Suppress text-hide deprecation warning (#26242)
-rw-r--r--scss/mixins/_text-hide.scss6
-rw-r--r--scss/utilities/_text.scss2
2 files changed, 5 insertions, 3 deletions
diff --git a/scss/mixins/_text-hide.scss b/scss/mixins/_text-hide.scss
index 4b8f218b50..9ffab169f3 100644
--- a/scss/mixins/_text-hide.scss
+++ b/scss/mixins/_text-hide.scss
@@ -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.";
+ }
}
diff --git a/scss/utilities/_text.scss b/scss/utilities/_text.scss
index 4f6eba506c..9d96c46562 100644
--- a/scss/utilities/_text.scss
+++ b/scss/utilities/_text.scss
@@ -54,5 +54,5 @@
// Misc
.text-hide {
- @include text-hide();
+ @include text-hide($ignore-warning: true);
}