From d31333389085ad4c88d64efca6ff7eb0276be5bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Poupard?= Date: Tue, 11 Mar 2025 10:20:07 +0100 Subject: [PATCH] fix(visually-hidden): prevent overflowing children to become focusable --- scss/mixins/_visually-hidden.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scss/mixins/_visually-hidden.scss b/scss/mixins/_visually-hidden.scss index 388916ccf6..9dd0ad33bf 100644 --- a/scss/mixins/_visually-hidden.scss +++ b/scss/mixins/_visually-hidden.scss @@ -19,6 +19,11 @@ &:not(caption) { position: absolute !important; } + + // Fix to prevent overflowing children to become focusable + * { + overflow: hidden !important; + } } // Use to only display content when it's focused, or one of its child elements is focused