]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix
authorlouismaximepiton <louismaxime.piton@orange.com>
Tue, 22 Nov 2022 10:39:26 +0000 (11:39 +0100)
committerMark Otto <otto@github.com>
Fri, 6 Jan 2023 19:47:24 +0000 (11:47 -0800)
scss/mixins/_visually-hidden.scss

index 4fc7f49d6976ac87a9e8b26039e197af2698403a..082aeec957f1a1324b4ca8d85cc3086fb7c5a8c8 100644 (file)
@@ -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;
   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