Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
louismaximepiton authored and mdo committed Jan 6, 2023
1 parent 8265927 commit 1ed86c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scss/mixins/_visually-hidden.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// See: https://kittygiraudel.com/2016/10/13/css-hide-and-seek/

@mixin visually-hidden() {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
Expand All @@ -15,6 +14,11 @@
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border: 0 !important;

// Fix for positioned table caption that could become anonymous cells
&:not(caption) {
position: absolute !important;
}
}

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

0 comments on commit 1ed86c9

Please sign in to comment.