aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouismaximepiton <[email protected]>2022-11-22 11:39:26 +0100
committerMark Otto <[email protected]>2023-01-06 11:47:24 -0800
commit1ed86c905f37ae97fd2ee02cf9e25a30f0d6a47f (patch)
tree31e047c71ff3534db9fd7cd3da38ae33178ec9cb
parent8265927fc1dc5fd18c13d04d623f00a77590e4e0 (diff)
downloadbootstrap-1ed86c905f37ae97fd2ee02cf9e25a30f0d6a47f.tar.xz
bootstrap-1ed86c905f37ae97fd2ee02cf9e25a30f0d6a47f.zip
Fix
-rw-r--r--scss/mixins/_visually-hidden.scss6
1 files changed, 5 insertions, 1 deletions
diff --git a/scss/mixins/_visually-hidden.scss b/scss/mixins/_visually-hidden.scss
index 4fc7f49d6..082aeec95 100644
--- a/scss/mixins/_visually-hidden.scss
+++ b/scss/mixins/_visually-hidden.scss
@@ -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;
@@ -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