diff --git a/scss/mixins/_text-hide.scss b/scss/mixins/_text-hide.scss index 4b8f218b50802839e93eadd8e5a95e3e380d6c47..9ffab169f3b3671b128efe6be4ab6dac3e9c581b 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 4f6eba506ca1728a5d2410d480cd23863e620c8f..9d96c46562ef4d943836b4ac5e73dd18f838b288 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); }