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

Side by Side 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 unified diff | Download patch
OLDNEW
1 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html"> 1 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap er-toggle-button.html">
4 <link rel="import" href="settings_boolean_control_behavior.html"> 4 <link rel="import" href="settings_boolean_control_behavior.html">
5 <link rel="import" href="../settings_shared_css.html"> 5 <link rel="import" href="../settings_shared_css.html">
6 6
7 <dom-module id="settings-toggle-button"> 7 <dom-module id="settings-toggle-button">
8 <template> 8 <template>
9 <style include="settings-shared"> 9 <style include="settings-shared">
10 :host([elide-label]), 10 :host([elide-label]),
(...skipping 22 matching lines...) Expand all
33 -webkit-margin-start: var(--checkbox-spacing); 33 -webkit-margin-start: var(--checkbox-spacing);
34 } 34 }
35 35
36 ::content .more-actions { 36 ::content .more-actions {
37 -webkit-margin-end: 10px; 37 -webkit-margin-end: 10px;
38 } 38 }
39 </style> 39 </style>
40 <div id="outerRow" noSubLabel$="[[!subLabel]]"> 40 <div id="outerRow" noSubLabel$="[[!subLabel]]">
41 <div class="flex" on-tap="onLabelWrapperTap_" 41 <div class="flex" on-tap="onLabelWrapperTap_"
42 actionable$="[[!controlDisabled_(disabled, pref.*)]]"> 42 actionable$="[[!controlDisabled_(disabled, pref.*)]]">
43 <div id="label" class="label"> 43 <div id="label" class="label">[[label]]</div>
44 [[label]]
45 </div>
46 <div class="secondary label">[[subLabel]]</div> 44 <div class="secondary label">[[subLabel]]</div>
47 </div> 45 </div>
48 <content select=".more-actions"></content> 46 <content select=".more-actions"></content>
49 <template is="dom-if" if="[[pref.controlledBy]]" restamp> 47 <template is="dom-if" if="[[pref.controlledBy]]" restamp>
50 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator> 48 <cr-policy-pref-indicator pref="[[pref]]" icon-aria-label="[[label]]">
49 </cr-policy-pref-indicator>
51 </template> 50 </template>
52 <paper-toggle-button id="control" checked="{{checked}}" 51 <paper-toggle-button id="control" checked="{{checked}}"
53 on-change="notifyChangedByUserInteraction" aria-labelledby="label" 52 on-change="notifyChangedByUserInteraction" aria-labelledby="label"
54 disabled="[[controlDisabled_(disabled, pref)]]"> 53 disabled="[[controlDisabled_(disabled, pref)]]">
55 </paper-toggle-button> 54 </paper-toggle-button>
56 </div> 55 </div>
57 </template> 56 </template>
58 <script src="settings_toggle_button.js"></script> 57 <script src="settings_toggle_button.js"></script>
59 </dom-module> 58 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698