From 056e28d9e084c134f6c58ad0ede31467a51294e6 Mon Sep 17 00:00:00 2001 From: Alexander Rechsteiner Date: Mon, 16 Apr 2018 08:45:07 +0200 Subject: [PATCH] Suppress text-hide deprecation warning (#26242) --- scss/mixins/_text-hide.scss | 6 ++++-- scss/utilities/_text.scss | 2 +- 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); }