From 83be357f18bde31c24ed3e03f91b5fff788aaa39 Mon Sep 17 00:00:00 2001 From: Tobias Date: Thu, 22 Sep 2022 12:56:00 +0200 Subject: [PATCH] fix(Avatar): don't overwrite SVG color --- .../src/docs/uilib/components/avatar/Examples.js | 2 +- .../avatar/__tests__/__snapshots__/Avatar.test.tsx.snap | 6 ------ .../avatar/style/themes/dnb-avatar-theme-ui.scss | 8 -------- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/avatar/Examples.js b/packages/dnb-design-system-portal/src/docs/uilib/components/avatar/Examples.js index 29ed219b9ba..869b186e726 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/components/avatar/Examples.js +++ b/packages/dnb-design-system-portal/src/docs/uilib/components/avatar/Examples.js @@ -178,7 +178,7 @@ export const AvatarDNBLogo = () => ( /* jsx */ ` - + ` diff --git a/packages/dnb-eufemia/src/components/avatar/__tests__/__snapshots__/Avatar.test.tsx.snap b/packages/dnb-eufemia/src/components/avatar/__tests__/__snapshots__/Avatar.test.tsx.snap index 4ffe04f7da3..833573a7c2d 100644 --- a/packages/dnb-eufemia/src/components/avatar/__tests__/__snapshots__/Avatar.test.tsx.snap +++ b/packages/dnb-eufemia/src/components/avatar/__tests__/__snapshots__/Avatar.test.tsx.snap @@ -15,9 +15,6 @@ 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 { @@ -25,9 +22,6 @@ exports[`Avatar scss have to match default theme snapshot 1`] = ` .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); } " `; diff --git a/packages/dnb-eufemia/src/components/avatar/style/themes/dnb-avatar-theme-ui.scss b/packages/dnb-eufemia/src/components/avatar/style/themes/dnb-avatar-theme-ui.scss index 4f3a9f3290b..e19f0ff92c1 100644 --- a/packages/dnb-eufemia/src/components/avatar/style/themes/dnb-avatar-theme-ui.scss +++ b/packages/dnb-eufemia/src/components/avatar/style/themes/dnb-avatar-theme-ui.scss @@ -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); } @@ -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); - } } }