Skip to content

Commit

Permalink
fix(Loading): fix safari specific issues w/ small loading (#7661)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
tw15egan and kodiakhq[bot] authored Feb 17, 2021
1 parent da2eced commit 0ed34c7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/components/src/components/loading/_loading.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@
stroke-dashoffset: -22;
}

// Negative values for `stroke-dashoffset` are not supported in Safari
@media not all and (min-resolution: 0.001dpcm) {
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
circle.#{$prefix}--loading__background {
stroke-dashoffset: 0;
stroke-dasharray: 265;
}
}
}

.#{$prefix}--loading-overlay {
position: fixed;
top: 0;
Expand Down

0 comments on commit 0ed34c7

Please sign in to comment.