Skip to content

Commit

Permalink
Fix border card hover safari (Shopify#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiamatulis authored Jan 11, 2022
1 parent 528d66e commit 7bca701
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/component-card.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@

.card .card__inner .card__media {
overflow: hidden;
/* Fix for Safari border bug on hover */
z-index: 0;
border-radius: calc(var(--card-corner-radius) - var(--card-border-width) - var(--card-image-padding));
}

Expand Down

0 comments on commit 7bca701

Please sign in to comment.