From 20268491bc60c196344db420f4b9f69541dbe25d Mon Sep 17 00:00:00 2001 From: Frankie Roberto Date: Tue, 9 Jul 2024 23:28:59 +0100 Subject: [PATCH] Move position:absolute back down --- packages/core/tools/_mixins.scss | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/core/tools/_mixins.scss b/packages/core/tools/_mixins.scss index fe77ddca0..bc903f864 100644 --- a/packages/core/tools/_mixins.scss +++ b/packages/core/tools/_mixins.scss @@ -38,8 +38,6 @@ // @mixin visually-hidden() { - position: absolute; - // Absolute positioning has the unintended consequence of removing any // whitespace surrounding visually hidden text from the accessibility tree. // Insert a space character before and after visually hidden text to separate @@ -60,6 +58,7 @@ margin: 0; overflow: hidden; padding: 0; + position: absolute; white-space: nowrap; width: 1px; }