mirror of https://github.com/twbs/bootstrap.git
Suppress text-hide deprecation warning (#26242)
This commit is contained in:
parent
555333a20e
commit
056e28d9e0
|
@ -1,5 +1,5 @@
|
||||||
// CSS image replacement
|
// CSS image replacement
|
||||||
@mixin text-hide() {
|
@mixin text-hide($ignore-warning: false) {
|
||||||
// stylelint-disable-next-line font-family-no-missing-generic-family-keyword
|
// stylelint-disable-next-line font-family-no-missing-generic-family-keyword
|
||||||
font: 0/0 a;
|
font: 0/0 a;
|
||||||
color: transparent;
|
color: transparent;
|
||||||
|
@ -7,5 +7,7 @@
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 0;
|
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.";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,5 +54,5 @@
|
||||||
// Misc
|
// Misc
|
||||||
|
|
||||||
.text-hide {
|
.text-hide {
|
||||||
@include text-hide();
|
@include text-hide($ignore-warning: true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue