Skip to content

Commit

Permalink
Fix greedy SCSS selector in linked-card utility class (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
amaisano authored and ryan-mahoney committed Sep 11, 2019
1 parent 7377bf9 commit 248ff30
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions apps/site/assets/css/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,14 @@
.u-linked-card {
position: relative;

&__primary-link {
a {
position: relative;
z-index: 2;
}

.u-linked-card__primary-link {
display: inline-block;
position: static;

&::after {
bottom: 0;
Expand All @@ -163,9 +169,4 @@
z-index: 1;
}
}

a:not(&__primary-link) {
position: relative;
z-index: 2;
}
}

0 comments on commit 248ff30

Please sign in to comment.