Updated the visually-hidden component.

This commit is contained in:
Fredrik Jonsson 2025-11-15 18:42:33 +01:00
commit 0cd720bd5a

View file

@ -6,10 +6,10 @@ Make an element visually hidden, but accessible to screen readers, etc. */
%visually-hidden {
&:not(:focus, :active) {
position: absolute;
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
width: 1px;
margin: 0;
overflow: hidden;
white-space: nowrap;
}