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

Side by Side Diff: chrome/browser/resources/settings/device_page/power.html

Issue 2817973002: MD-Settings: A11y - Label power source and stylus drop downs. (Closed)
Patch Set: Rename label Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/resources/settings/device_page/stylus.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/html/cr.html"> 1 <link rel="import" href="chrome://resources/html/cr.html">
2 <link rel="import" href="chrome://resources/html/i18n_behavior.html"> 2 <link rel="import" href="chrome://resources/html/i18n_behavior.html">
3 <link rel="import" href="chrome://resources/html/md_select_css.html"> 3 <link rel="import" href="chrome://resources/html/md_select_css.html">
4 <link rel="import" href="chrome://resources/html/polymer.html"> 4 <link rel="import" href="chrome://resources/html/polymer.html">
5 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html"> 5 <link rel="import" href="chrome://resources/html/web_ui_listener_behavior.html">
6 <link rel="import" href="../route.html"> 6 <link rel="import" href="../route.html">
7 <link rel="import" href="../settings_shared_css.html"> 7 <link rel="import" href="../settings_shared_css.html">
8 8
9 <dom-module id="settings-power"> 9 <dom-module id="settings-power">
10 <template> 10 <template>
11 <style include="settings-shared md-select"></style> 11 <style include="settings-shared md-select"></style>
12 <div id="powerSourceRow" class="settings-box first two-line"> 12 <div id="powerSourceRow" class="settings-box first two-line">
13 <div class="start"> 13 <div class="start">
14 <div>[[powerSourceLabel_]]</div> 14 <div>[[powerSourceLabel_]]</div>
15 <div class="secondary">[[batteryStatus_.statusText]]</div> 15 <div class="secondary">[[batteryStatus_.statusText]]</div>
16 </div> 16 </div>
17 <div class="md-select-wrapper" hidden$="[[!showPowerSourceDropdown_]]"> 17 <div class="md-select-wrapper" hidden$="[[!showPowerSourceDropdown_]]">
18 <select id="powerSource" class="md-select" 18 <select id="powerSource" class="md-select"
19 aria-label="$i18n{powerSourceLabel}"
19 on-change="onPowerSourceChange_"> 20 on-change="onPowerSourceChange_">
20 <option value="" selected="[[isEqual_('', selectedPowerSourceId_)]]"> 21 <option value="" selected="[[isEqual_('', selectedPowerSourceId_)]]">
21 $i18n{powerSourceBattery} 22 $i18n{powerSourceBattery}
22 </option> 23 </option>
23 <template is="dom-repeat" items="[[powerSources_]]"> 24 <template is="dom-repeat" items="[[powerSources_]]">
24 <option value="[[item.id]]" 25 <option value="[[item.id]]"
25 selected="[[isEqual_(item.id, selectedPowerSourceId_)]]"> 26 selected="[[isEqual_(item.id, selectedPowerSourceId_)]]">
26 [[item.description]] 27 [[item.description]]
27 </option> 28 </option>
28 </template> 29 </template>
29 </select> 30 </select>
30 <span class="md-select-underline"></span> 31 <span class="md-select-underline"></span>
31 </div> 32 </div>
32 <div hidden$="[[showPowerSourceDropdown_]]"> 33 <div hidden$="[[showPowerSourceDropdown_]]">
33 [[powerSourceName_]] 34 [[powerSourceName_]]
34 </div> 35 </div>
35 </div> 36 </div>
36 </template> 37 </template>
37 <script src="power.js"></script> 38 <script src="power.js"></script>
38 </dom-module> 39 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/settings/device_page/stylus.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698