Skip to content

Commit

Permalink
fix(Tag): fix issues with skeleton in safari (#7679)
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 Jan 28, 2021
1 parent 72b73e3 commit 4d12ea7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/components/src/components/tag/_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,17 @@
// Skeleton state
.#{$prefix}--tag.#{$prefix}--skeleton {
@include skeleton;
@include tag-theme($bg-color: $ui-03, $text-color: $text-01);
@include tag-theme($bg-color: $skeleton-01, $text-color: $text-01);

width: rem(60px);
overflow: hidden;

// Safari specific bug (#7672)
@media not all and (min-resolution: 0.001dpcm) {
@supports (-webkit-appearance: none) and (stroke-color: transparent) {
transform: translateZ(0);
}
}
}
}

Expand Down

0 comments on commit 4d12ea7

Please sign in to comment.