Skip to content

Commit 0ed34c7

Browse files
fix(Loading): fix safari specific issues w/ small loading (#7661)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent da2eced commit 0ed34c7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/components/src/components/loading/_loading.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,16 @@
6666
stroke-dashoffset: -22;
6767
}
6868

69+
// Negative values for `stroke-dashoffset` are not supported in Safari
70+
@media not all and (min-resolution: 0.001dpcm) {
71+
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
72+
circle.#{$prefix}--loading__background {
73+
stroke-dashoffset: 0;
74+
stroke-dasharray: 265;
75+
}
76+
}
77+
}
78+
6979
.#{$prefix}--loading-overlay {
7080
position: fixed;
7181
top: 0;

0 commit comments

Comments
 (0)