Commit bcfb7ed1 authored by Martijn Cuppens's avatar Martijn Cuppens Committed by XhmikosR
Browse files

Deprecate `invisible()` mixin (#28066)

parent c0e42cb8
Showing with 8 additions and 4 deletions
+8 -4
......@@ -4,4 +4,5 @@
@mixin invisible($visibility) {
visibility: $visibility !important;
@include deprecate("`invisible()`", "v4.3.0", "v5");
}
// stylelint-disable declaration-no-important
//
// Visibility utilities
//
.visible {
@include invisible(visible);
visibility: visible !important;
}
.invisible {
@include invisible(hidden);
visibility: hidden !important;
}
......@@ -17,13 +17,14 @@ Apply `.visible` or `.invisible` as needed.
{% highlight scss %}
// Class
.visible {
visibility: visible;
visibility: visible !important;
}
.invisible {
visibility: hidden;
visibility: hidden !important;
}
// Usage as a mixin
// Warning: The `invisible()` mixin has been deprecated as of v4.3.0. It will be removed entirely in v5.
.element {
@include invisible(visible);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment