Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Unified Diff: chrome/browser/resources/settings/controls/settings_toggle_button.html

Issue 2705543003: MD-Settings: Adds an a11y label to most toggle buttons. (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/controls/settings_toggle_button.html
diff --git a/chrome/browser/resources/settings/controls/settings_toggle_button.html b/chrome/browser/resources/settings/controls/settings_toggle_button.html
index a294ae0e7e63f732b6060118f7f0590acb3a25e8..c20a033c7e28bbc0837dac720c0d0b4009da1763 100644
--- a/chrome/browser/resources/settings/controls/settings_toggle_button.html
+++ b/chrome/browser/resources/settings/controls/settings_toggle_button.html
@@ -39,7 +39,7 @@
<div id="outerRow" noSubLabel$="[[!subLabel]]">
<div class="flex" on-tap="onLabelWrapperTap_"
actionable$="[[!controlDisabled_(disabled, pref)]]">
- <div class="label">
+ <div id="label" class="label">
[[label]]
</div>
<div class="secondary label">[[subLabel]]</div>
@@ -49,7 +49,7 @@
<cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator>
</template>
<paper-toggle-button id="control" checked="{{checked}}"
- on-change="notifyChangedByUserInteraction"
+ on-change="notifyChangedByUserInteraction" aria-labelledby="label"
disabled="[[controlDisabled_(disabled, pref)]]">
</paper-toggle-button>
</div>

Powered by Google App Engine
This is Rietveld 408576698