]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Switch to clip-path and protect against layout issues patrickhlauke-tweak-visually-hidden 41474/head
authorGaël Poupard <gael+github@ffoodd.fr>
Wed, 22 Oct 2025 13:59:36 +0000 (15:59 +0200)
committerGaël Poupard <gael+github@ffoodd.fr>
Wed, 22 Oct 2025 14:44:57 +0000 (16:44 +0200)
.bundlewatch.config.json
scss/mixins/_visually-hidden.scss

index 6f680664ca67b103f46207d49e551172917ef9f6..9c7b2ae8f3dc2aab3766741fa157d56bf2be2fb4 100644 (file)
@@ -22,7 +22,7 @@
     },
     {
       "path": "./dist/css/bootstrap-utilities.min.css",
-      "maxSize": "10.75 kB"
+      "maxSize": "11 kB"
     },
     {
       "path": "./dist/css/bootstrap.css",
index c203cee204cb0ee68a75492dc598323131fac91a..69f450d4a91105aa845b57973c6e6b1f375fa398 100644 (file)
@@ -7,12 +7,14 @@
 
 @mixin visually-hidden() {
   display: inline-block !important; // using this rather than position:absolute to allow for width/height/clip to work without causing undue spacing (e.g. in responsive tables)
+  flex: none !important;
   width: 1px !important;
   height: 1px !important;
   padding: 0 !important;
   margin: -1px !important; // Fix for https://github.com/twbs/bootstrap/issues/25686
   overflow: hidden !important;
-  clip: rect(0, 0, 0, 0) !important;
+  clip-path: inset(50%) !important;
+  contain: strict !important;
   white-space: nowrap !important;
   border: 0 !important;