Skip to content

Commit

Permalink
fix(card): clean up inverse and static styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ariellalgilmore committed Oct 10, 2023
1 parent eab73a2 commit 3ac07f0
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions packages/styles/scss/components/card/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@
:host(#{$c4d-prefix}-card-group-item) {
&:not([href]) {
.#{$prefix}--card .#{$prefix}--card__copy {
margin-top: auto;
margin-bottom: $spacing-01;
}

Expand Down Expand Up @@ -545,6 +546,19 @@
.#{$prefix}--card {
.#{$prefix}--tile {
background-color: $background-inverse;
border-color: $background-inverse;

&:hover {
#{$c4d-prefix}-image,
::slotted(#{$c4d-prefix}-image),
::slotted(#{$c4d-prefix}-card-cta-image){
filter: brightness(108%);

&::after {
display: none;
}
}
}
}

.#{$prefix}--card__wrapper:hover {
Expand All @@ -560,15 +574,6 @@
color: $text-placeholder;
}

&:hover {
background-color: $background-inverse-hover;

::slotted(#{$c4d-prefix}-image),
::slotted(#{$c4d-prefix}-card-cta-image) {
filter: brightness(108%);
}
}

&:focus-within {
&::after {
content: '';
Expand Down

0 comments on commit 3ac07f0

Please sign in to comment.