Merge pull request #328 from QuickMythril/screen-reader-theme

Add label to theme toggle
This commit is contained in:
AlphaX
2024-11-19 21:16:23 +01:00
committed by GitHub

View File

@@ -20,7 +20,12 @@ class QortThemeToggle extends LitElement {
render() {
return html`
<input type="checkbox" @change=${() => this.toggleTheme()}/>
<input
type="checkbox"
role="switch"
aria-label="Dark theme"
@change=${() => this.toggleTheme()}
/>
<div class="slider"></div>
<div class="icon">
<span class="sun">${svgSun}</span>