Skip to content

Commit a3bea73

Browse files
authored
fix: Moved logos so they show in production build (#1713)
Moved logos so they show in production build fixes #1712 **Test Plan** `npm run build` `npm run preview` Open DH, logo should show up for both dark and light themes
1 parent 9ddc973 commit a3bea73

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

packages/components/src/theme/logos/community-wordmark-dark.svg renamed to packages/components/logos/community-wordmark-dark.svg

File renamed without changes.

packages/components/src/theme/logos/community-wordmark-light.svg renamed to packages/components/logos/community-wordmark-light.svg

File renamed without changes.

packages/components/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
"files": [
5858
"dist",
5959
"scss",
60-
"css"
60+
"css",
61+
"logos"
6162
],
6263
"sideEffects": [
6364
"*.css"

packages/components/src/theme/Logo.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:root {
2-
--dh-logo-dark-img: url('./logos/community-wordmark-dark.svg');
3-
--dh-logo-light-img: url('./logos/community-wordmark-light.svg');
2+
--dh-logo-dark-img: url('../../logos/community-wordmark-dark.svg');
3+
--dh-logo-light-img: url('../../logos/community-wordmark-light.svg');
44
}
55

66
.dh-logo {

0 commit comments

Comments
 (0)