Visibility
Utilities for showing or hiding an element without changing the layout of a document.
Classes
Class | Output |
---|---|
.d-vi-visible | visibility: visible !important; |
.d-vi-visible-sr | border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; |
.d-vi-hidden | visibility: hidden !important; |
Usage
<div class="d-vi-visible">...</div>
<div class="d-vi-visible-sr">...</div>
<div class="d-vi-hidden">...</div>
Accessibility
Bear in mind using a visibility value of hidden
on an element will remove it from the accessibility tree. This will cause the element and all its descendant elements to no longer be announced by screen reading technology.