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

Side by Side Diff: chrome/browser/resources/settings/controls/settings_dropdown_menu.html

Issue 2886603002: [MD settings] separate spacing of controlled-by icon and control-label (Closed)
Patch Set: review changes Created 3 years, 7 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/md_select_css.html"> 1 <link rel="import" href="chrome://resources/html/md_select_css.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/cr_elements/policy/cr_policy_pref_be havior.html"> 3 <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_in dicator.html"> 4 <link rel="import" href="chrome://resources/cr_elements/policy/cr_policy_pref_in dicator.html">
5 <link rel="import" href="pref_control_behavior.html"> 5 <link rel="import" href="pref_control_behavior.html">
6 <link rel="import" href="../i18n_setup.html"> 6 <link rel="import" href="../i18n_setup.html">
7 <link rel="import" href="../prefs/pref_util.html"> 7 <link rel="import" href="../prefs/pref_util.html">
8 <link rel="import" href="../settings_shared_css.html"> 8 <link rel="import" href="../settings_shared_css.html">
9 <link rel="import" href="../settings_vars_css.html"> 9 <link rel="import" href="../settings_vars_css.html">
10 10
11 <dom-module id="settings-dropdown-menu"> 11 <dom-module id="settings-dropdown-menu">
12 <template> 12 <template>
13 <style include="settings-shared md-select"> 13 <style include="settings-shared md-select">
14 :host { 14 :host {
15 display: inline-flex; 15 display: inline-flex;
16 } 16 }
17 17
18 cr-policy-pref-indicator { 18 cr-policy-pref-indicator {
19 margin: 0 var(--settings-control-spacing); 19 margin: 0 var(--settings-controlled-by-spacing);
20 } 20 }
21 21
22 /* Hide "Custom" value when unselectable. */ 22 /* Hide "Custom" value when unselectable. */
23 option:disabled { 23 option:disabled {
24 display: none; 24 display: none;
25 } 25 }
26 </style> 26 </style>
27 <template is="dom-if" if="[[pref.controlledBy]]" restamp> 27 <template is="dom-if" if="[[pref.controlledBy]]" restamp>
28 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator> 28 <cr-policy-pref-indicator pref="[[pref]]"></cr-policy-pref-indicator>
29 </template> 29 </template>
30 <div class="md-select-wrapper"> 30 <div class="md-select-wrapper">
31 <select class="md-select" id="dropdownMenu" on-change="onChange_" 31 <select class="md-select" id="dropdownMenu" on-change="onChange_"
32 aria-label$="[[label]]" 32 aria-label$="[[label]]"
33 disabled="[[shouldDisableMenu_(disabled, menuOptions, pref.*)]]"> 33 disabled="[[shouldDisableMenu_(disabled, menuOptions, pref.*)]]">
34 <template is="dom-repeat" items="[[menuOptions]]"> 34 <template is="dom-repeat" items="[[menuOptions]]">
35 <option value="[[item.value]]">[[item.name]]</option> 35 <option value="[[item.value]]">[[item.name]]</option>
36 </template> 36 </template>
37 <option value="[[notFoundValue_]]" 37 <option value="[[notFoundValue_]]"
38 disabled="[[!showNotFoundValue_(menuOptions, pref.value)]]"> 38 disabled="[[!showNotFoundValue_(menuOptions, pref.value)]]">
39 $i18n{custom} 39 $i18n{custom}
40 </option> 40 </option>
41 </select> 41 </select>
42 <span class="md-select-underline"></span> 42 <span class="md-select-underline"></span>
43 </div> 43 </div>
44 </template> 44 </template>
45 <script src="settings_dropdown_menu.js"></script> 45 <script src="settings_dropdown_menu.js"></script>
46 </dom-module> 46 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698