Skip to content

Commit

Permalink
Change default styles to not conflict with user's
Browse files Browse the repository at this point in the history
... `body` `background` styling.
  • Loading branch information
jccr committed Jul 20, 2019
1 parent afcd015 commit 9907c82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,8 @@ In the Explorer view, using the "Download" context menu item on the workspace fo
### 1.0.0

Initial release of Sandbox!

### 1.0.1

Change default styles to not conflict with user's `body` `background` styling.

2 changes: 1 addition & 1 deletion src/htmlView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export class HTMLView {
document.head.prepend(style);

const defaultStyle = document.createElement("style");
defaultStyle.textContent = "html{background-color:white;}";
defaultStyle.textContent = "body{background-color:white;}";
document.head.prepend(defaultStyle);

const script = document.createElement("script");
Expand Down

0 comments on commit 9907c82

Please sign in to comment.