Skip to content

Commit 3bb622b

Browse files
committed
rename css vars
1 parent 674f53b commit 3bb622b

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

packages/feedback/src/widget/Main.css.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,20 @@ export function createMainStyles(
1515
--right: 1rem;
1616
--top: auto;
1717
--left: auto;
18-
--zIndex: 100000;
18+
--z-index: 100000;
19+
--font-family: ${themes.light.fontFamily};
20+
--font-size: ${themes.light.fontSize};
1921
2022
position: fixed;
2123
left: var(--left);
2224
right: var(--right);
2325
bottom: var(--bottom);
2426
top: var(--top);
27+
z-index: var(--z-index);
2528
26-
z-index: var(--zIndex);
29+
font-family: var(--font-family);
30+
font-size: var(--font-size);
2731
28-
font-family: ${themes.light.fontFamily};
29-
font-size: ${themes.light.fontSize};
3032
--bg-color: ${themes.light.background};
3133
--bg-hover-color: ${themes.light.backgroundHover};
3234
--fg-color: ${themes.light.foreground};
@@ -48,20 +50,22 @@ ${
4850
--success-color: ${themes.dark.success};
4951
--border: ${themes.dark.border};
5052
--box-shadow: ${themes.dark.boxShadow};
53+
--font-family: ${themes.dark.fontFamily};
54+
--font-size: ${themes.dark.fontSize};
5155
}
5256
}
5357
`
5458
: `
5559
:host-context([data-sentry-feedback-colorscheme="dark"]) {
56-
font-family: ${themes.dark.fontFamily};
57-
font-size: ${themes.dark.fontSize};
5860
--bg-color: ${themes.dark.background};
5961
--bg-hover-color: ${themes.dark.backgroundHover};
6062
--fg-color: ${themes.dark.foreground};
6163
--error-color: ${themes.dark.error};
6264
--success-color: ${themes.dark.success};
6365
--border: ${themes.dark.border};
6466
--box-shadow: ${themes.dark.boxShadow};
67+
--font-family: ${themes.dark.fontFamily};
68+
--font-size: ${themes.dark.fontSize};
6569
}
6670
`
6771
}`;

0 commit comments

Comments
 (0)