We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fd011c commit 50f9a9bCopy full SHA for 50f9a9b
packages/feedback/src/widget/Logo.ts
@@ -33,8 +33,13 @@ export function Logo({ colorScheme }: Props): IconReturn {
33
const defs = createElementNS('defs');
34
const style = createElementNS('style');
35
36
+ style.textContent = `
37
+ path {
38
+ fill: ${colorScheme === 'dark' ? '#fff' : '#362d59'};
39
+ }`;
40
+
41
if (colorScheme === 'system') {
- style.textContent = `
42
+ style.textContent += `
43
@media (prefers-color-scheme: dark) {
44
path: {
45
fill: '#fff';
@@ -43,11 +48,6 @@ export function Logo({ colorScheme }: Props): IconReturn {
48
`;
49
}
50
46
47
- path {
- fill: ${colorScheme === 'dark' ? '#fff' : '#362d59'};
- }`;
-
51
defs.append(style);
52
svg.append(defs);
53
0 commit comments