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

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

Issue 2720413002: MD Settings: add an aria-label to control indicators (often policy) (Closed)
Patch Set: merge Created 3 years, 9 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 22e2bb5e9b0386f73a20320a374f51aa48186e6d..1b50447ca8f041dd9d6374137dc2ce176aa509c7 100644
--- a/chrome/browser/resources/settings/controls/settings_toggle_button.html
+++ b/chrome/browser/resources/settings/controls/settings_toggle_button.html
@@ -40,14 +40,13 @@
<div id="outerRow" noSubLabel$="[[!subLabel]]">
<div class="flex" on-tap="onLabelWrapperTap_"
actionable$="[[!controlDisabled_(disabled, pref.*)]]">
- <div id="label" class="label">
- [[label]]
- </div>
+ <div id="label" class="label">[[label]]</div>
<div class="secondary label">[[subLabel]]</div>
</div>
<content select=".more-actions"></content>
<template is="dom-if" if="[[pref.controlledBy]]" restamp>
- <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator>
+ <cr-policy-pref-indicator pref="[[pref]]" icon-aria-label="[[label]]">
+ </cr-policy-pref-indicator>
</template>
<paper-toggle-button id="control" checked="{{checked}}"
on-change="notifyChangedByUserInteraction" aria-labelledby="label"

Powered by Google App Engine
This is Rietveld 408576698