Skip to content

Commit

Permalink
Suppress text-hide deprecation warning (#26242)
Browse files Browse the repository at this point in the history
  • Loading branch information
arechsteiner authored and XhmikosR committed Apr 16, 2018
1 parent 555333a commit 056e28d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions scss/mixins/_text-hide.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
// 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;
text-shadow: none;
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.";
}
}
2 changes: 1 addition & 1 deletion scss/utilities/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
// Misc

.text-hide {
@include text-hide();
@include text-hide($ignore-warning: true);
}

0 comments on commit 056e28d

Please sign in to comment.