Skip to content

Commit 0e92b09

Browse files
committed
fix(visually-hidden): prevent overflowing children from becoming focusable
1 parent 6df2f7d commit 0e92b09

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scss/mixins/_visually-hidden.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
&:not(caption) {
2020
position: absolute !important;
2121
}
22+
23+
// Fix to prevent overflowing children to become focusable
24+
* {
25+
overflow: hidden !important;
26+
}
2227
}
2328

2429
// Use to only display content when it's focused, or one of its child elements is focused

0 commit comments

Comments
 (0)