From: Alexander Rechsteiner Date: Mon, 16 Apr 2018 06:45:07 +0000 (+0200) Subject: Suppress text-hide deprecation warning (#26242) X-Git-Tag: v4.1.1~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=056e28d9e084c134f6c58ad0ede31467a51294e6;p=thirdparty%2Fbootstrap.git Suppress text-hide deprecation warning (#26242) --- 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); }