update theme-toggle

This commit is contained in:
Geoff Doty 2025-03-22 17:37:54 -04:00
parent 326ae7cbda
commit 0db179bc06
1 changed files with 1 additions and 3 deletions

View File

@ -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