0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +01:00

Suppress text-hide deprecation warning (#26242)

This commit is contained in:
Alexander Rechsteiner 2018-04-16 08:45:07 +02:00 committed by XhmikosR
parent 555333a20e
commit 056e28d9e0
2 changed files with 5 additions and 3 deletions

View 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.";
}
}

View File

@ -54,5 +54,5 @@
// Misc
.text-hide {
@include text-hide();
@include text-hide($ignore-warning: true);
}