Skip to content

Commit c7c082f

Browse files
committed
fix(vscode-theming): standardize background and foreground style property setting
1 parent 4ca0046 commit c7c082f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

apps/web/src/core/vscode/use-vscode-theme.hook.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ const applyTheme = (theme: ThemePayload): void => {
2121
root.style.setProperty(cssVar, value);
2222
}
2323
}
24-
if (theme.background) document.body.style.backgroundColor = theme.background;
25-
if (theme.foreground) document.body.style.color = theme.foreground;
24+
if (theme.background)
25+
document.body.style.setProperty('background-color', theme.background);
26+
if (theme.foreground)
27+
document.body.style.setProperty('color', theme.foreground);
2628
};
2729

2830
export const useVSCodeTheme = (): void => {

0 commit comments

Comments
 (0)