Compare commits

...

2 Commits

Author SHA1 Message Date
Gaël Poupard cdc89a0698 Switch to clip-path and protect against layout issues 2025-10-22 16:44:57 +02:00
Patrick H. Lauke 78bff072e0 Tweak .visually-hidden to use display:inline-block instead of absolute positioning 2025-10-22 16:00:14 +02:00
2 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -22,7 +22,7 @@
},
{
"path": "./dist/css/bootstrap-utilities.min.css",
"maxSize": "10.75 kB"
"maxSize": "11 kB"
},
{
"path": "./dist/css/bootstrap.css",
+4 -6
View File
@@ -6,20 +6,18 @@
// See: https://kittygiraudel.com/2016/10/13/css-hide-and-seek/
@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;
// Fix for positioned table caption that could become anonymous cells
&:not(caption) {
position: absolute !important;
}
// Fix to prevent overflowing children to become focusable
* {
overflow: hidden !important;