A11y - toggle button for dark mode should be associated with the label next
Change-Id: I8436107444ca16042261aca8e657793f14fa9c12
This commit is contained in:
@@ -98,10 +98,11 @@ export const htmlTemplate = html`
|
|||||||
<section class="darkToggle">
|
<section class="darkToggle">
|
||||||
<div class="toggle">
|
<div class="toggle">
|
||||||
<paper-toggle-button
|
<paper-toggle-button
|
||||||
|
aria-labelledby="darkThemeToggleLabel"
|
||||||
checked="[[_isDark]]"
|
checked="[[_isDark]]"
|
||||||
on-change="_handleToggleDark"
|
on-change="_handleToggleDark"
|
||||||
></paper-toggle-button>
|
></paper-toggle-button>
|
||||||
<div>Dark theme (alpha)</div>
|
<div id="darkThemeToggleLabel">Dark theme (alpha)</div>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
Gerrit's dark theme is in early alpha, and almost definitely will not
|
Gerrit's dark theme is in early alpha, and almost definitely will not
|
||||||
|
|||||||
Reference in New Issue
Block a user