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:
commit
7c2e74b03b
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user