Skip to content

Commit

Permalink
adding hover background on primary variant
Browse files Browse the repository at this point in the history
  • Loading branch information
nicosammito committed Dec 19, 2023
1 parent a0a8aa2 commit 56398cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/card/Card.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const meta: Meta = {
export default meta

export const Test = () => {
return <Card>
return <Card variant={"secondary"}>
<Card.Image alt={"Nico Sammito"} src={"https://event.gls-west.de/Nico_Sammito.jpg"}/>
<Card.Header>
<Card.Title>Nico Sammito</Card.Title>
Expand Down
2 changes: 1 addition & 1 deletion src/components/card/Card.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

.list-group__item {
@include hoverAndActiveContent {
background: rgba($color, .1) !important;
background: rgba(if($color == $primary, $white, $color), .1) !important;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/list-group/ListGroup.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
border-bottom: 1px solid borderColor();

@include hoverAndActiveContent {
background: rgba($secondary, .1);
background: rgba($white, .1);
}

&:last-of-type {
Expand Down

0 comments on commit 56398cf

Please sign in to comment.