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

Side by Side Diff: chrome/browser/resources/settings/controls/controlled_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/html/assert.html"> 1 <link rel="import" href="chrome://resources/html/assert.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-button/paper-butt on.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt on.html">
4 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_be havior.html"> 4 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_be havior.html">
5 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html"> 5 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html">
6 <link rel="import" href="pref_control_behavior.html"> 6 <link rel="import" href="pref_control_behavior.html">
7 <link rel="import" href="../i18n_setup.html"> 7 <link rel="import" href="../i18n_setup.html">
8 <link rel="import" href="../settings_shared_css.html"> 8 <link rel="import" href="../settings_shared_css.html">
9 9
10 <dom-module id="controlled-button"> 10 <dom-module id="controlled-button">
(...skipping 20 matching lines...) Expand all
31 :host(:not([end-justified])) cr-policy-pref-indicator { 31 :host(:not([end-justified])) cr-policy-pref-indicator {
32 -webkit-margin-start: var(--justify-margin); 32 -webkit-margin-start: var(--justify-margin);
33 } 33 }
34 34
35 :host([end-justified]) cr-policy-pref-indicator { 35 :host([end-justified]) cr-policy-pref-indicator {
36 -webkit-margin-end: var(--justify-margin); 36 -webkit-margin-end: var(--justify-margin);
37 order: -1; 37 order: -1;
38 } 38 }
39 </style> 39 </style>
40 40
41 <paper-button disabled="[[controlled_]]"> 41 <paper-button disabled="[[controlled_]]">[[label]]</paper-button>
42 <content></content>
43 </paper-button>
44 42
45 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]" restamp> 43 <template is="dom-if" if="[[hasPrefPolicyIndicator(pref.*)]]" restamp>
46 <cr-policy-pref-indicator pref="[[pref]]" on-tap="onIndicatorTap_"> 44 <cr-policy-pref-indicator pref="[[pref]]" on-tap="onIndicatorTap_"
45 icon-aria-label="[[label]]">
47 </cr-policy-pref-indicator> 46 </cr-policy-pref-indicator>
48 </template> 47 </template>
49 48
50 </template> 49 </template>
51 <script src="controlled_button.js"></script> 50 <script src="controlled_button.js"></script>
52 </dom-module> 51 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698