Skip to content

Commit

Permalink
fix(Avatar): don't overwrite SVG color (#1579)
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker authored Sep 22, 2022
1 parent 0983343 commit a6b3f50
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export const AvatarDNBLogo = () => (
/* jsx */ `
<Avatar.Group label="Logos:">
<Avatar>
<Logo size="auto" />
<Logo size="auto" inherit_color />
</Avatar>
</Avatar.Group>
`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,13 @@ exports[`Avatar scss have to match default theme snapshot 1`] = `
*/
.dnb-avatar {
color: var(--color-pistachio); }
.dnb-avatar svg {
color: var(--color-pistachio);
fill: var(--color-pistachio); }
.dnb-avatar--primary {
background-color: var(--color-emerald-green); }
.dnb-avatar--secondary {
background-color: var(--color-sea-green); }
.dnb-avatar--tertiary {
background-color: var(--color-mint-green);
color: var(--color-emerald-green); }
.dnb-avatar--tertiary svg {
color: var(--color-emerald-green);
fill: var(--color-emerald-green); }
"
`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
.dnb-avatar {
color: var(--color-pistachio);

svg {
color: var(--color-pistachio);
fill: var(--color-pistachio);
}
&--primary {
background-color: var(--color-emerald-green);
}
Expand All @@ -21,9 +17,5 @@
&--tertiary {
background-color: var(--color-mint-green);
color: var(--color-emerald-green);
svg {
color: var(--color-emerald-green);
fill: var(--color-emerald-green);
}
}
}

0 comments on commit a6b3f50

Please sign in to comment.