mirror of https://github.com/n2geoff/stylelite.git
update theme-toggle
This commit is contained in:
parent
326ae7cbda
commit
0db179bc06
|
@ -1,7 +1,6 @@
|
||||||
class ThemeToggle extends HTMLElement {
|
class ThemeToggle extends HTMLElement {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
// this.attachShadow({ mode: 'open' });
|
|
||||||
this.isLight = true;
|
this.isLight = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,9 +18,8 @@ class ThemeToggle extends HTMLElement {
|
||||||
render() {
|
render() {
|
||||||
this.innerHTML = `
|
this.innerHTML = `
|
||||||
<style>
|
<style>
|
||||||
:host {
|
theme-toggle:hover {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: inline-block;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
${this.isLight
|
${this.isLight
|
||||||
|
|
Loading…
Reference in New Issue