Skip to content

Commit 14e67fd

Browse files
committed
✨ Set the default background color to white
1 parent 1bd0076 commit 14e67fd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"ui"
1010
],
1111
"icon": "images/icon-logo.png",
12-
"version": "0.1.5",
12+
"version": "0.1.6",
1313
"engines": {
1414
"vscode": "^1.92.0"
1515
},

src/visualEditor.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ export class VisualEditorProvider implements vscode.CustomTextEditorProvider {
317317
codeId: code.uri.toString(), config
318318
})}`;
319319
document.head.appendChild(embeddedScript);
320+
// Default style
321+
const defaultStyle = document.createElement('style');
322+
defaultStyle.textContent = 'html, body { background-color: white; }';
323+
document.head.prepend(defaultStyle);
320324
// Incorporate CSS files into layer and lower their priority
321325
const style = document.createElement('style');
322326
document.querySelectorAll('link[href][rel=stylesheet]').forEach(el => {

0 commit comments

Comments
 (0)