Dialtone

Visibility

Utilities for showing or hiding an element without changing the layout of a document.

Classes

ClassOutput
.d-vi-visiblevisibility: visible !important;
.d-vi-visible-srborder: 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-hiddenvisibility: 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.

Last Updated: