Skip to content

Commit

Permalink
Open shadow root
Browse files Browse the repository at this point in the history
  • Loading branch information
tomayac committed Jul 21, 2020
1 parent 7559a67 commit 090b967
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dark-mode-toggle",
"version": "0.7.1",
"version": "0.7.2",
"description": "Web Component that toggles dark mode 🌒",
"main": "src/dark-mode-toggle.mjs",
"browser": "src/dark-mode-toggle.mjs",
Expand Down Expand Up @@ -34,7 +34,7 @@
},
"homepage": "https://github.com/googlechromelabs/dark-mode-toggle#readme",
"devDependencies": {
"eslint": "^7.3.0",
"eslint": "^7.5.0",
"eslint-config-google": "^0.14.0",
"http-server": "^0.12.3",
"shx": "^0.3.2",
Expand Down
2 changes: 1 addition & 1 deletion src/dark-mode-toggle.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class DarkModeToggle extends HTMLElement {
}

_initializeDOM() {
const shadowRoot = this.attachShadow({mode: 'closed'});
const shadowRoot = this.attachShadow({mode: 'open'});
shadowRoot.appendChild(template.content.cloneNode(true));

// We need to support `media="(prefers-color-scheme: dark)"` (with space)
Expand Down

0 comments on commit 090b967

Please sign in to comment.