Skip to content

Commit 0facd9f

Browse files
authored
fix: prevent shifting in safari (#3690)
1 parent 58e46d7 commit 0facd9f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/block/button/style.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,12 @@
2828
box-sizing: border-box;
2929
}
3030
}
31+
32+
// Force Safari to render the SVG on its own layer to prevent shifting
33+
// during parent transition.
34+
// @see https://github.com/gambitph/Stackable/issues/3687
35+
@supports (font: -apple-system-body) {
36+
.stk-button svg {
37+
will-change: transform;
38+
}
39+
}

0 commit comments

Comments
 (0)