4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00

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
commit 7c2e74b03b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -20,7 +20,12 @@ class QortThemeToggle extends LitElement {
render() { render() {
return html` 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="slider"></div>
<div class="icon"> <div class="icon">
<span class="sun">${svgSun}</span> <span class="sun">${svgSun}</span>