-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ChromeOS OOBE: switch from iron-dropdown to <select>.
To fix several issues with polymer dropdown menu by switching to native select. BUG=604119,663267 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2502773003 Cr-Commit-Position: refs/heads/master@{#433137}
- Loading branch information
alemate
authored and
Commit bot
committed
Nov 18, 2016
1 parent
c5afa23
commit 076cf8a
Showing
20 changed files
with
58 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 7 additions & 42 deletions
49
chrome/browser/resources/chromeos/login/oobe_i18n_dropdown.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,15 @@ | ||
<link rel="import" href="chrome://resources/html/md_select_css.html"> | ||
<link rel="import" href="chrome://resources/html/polymer.html"> | ||
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classes/iron-flex-layout.html"> | ||
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html"> | ||
<link rel="import" href="chrome://resources/polymer/v1_0/iron-iconset-svg/iron-iconset-svg.html"> | ||
<link rel="import" href="chrome://resources/polymer/v1_0/paper-dropdown-menu/paper-dropdown-menu.html"> | ||
<link rel="import" href="chrome://resources/polymer/v1_0/paper-item/paper-item.html"> | ||
<link rel="import" href="chrome://resources/polymer/v1_0/paper-listbox/paper-listbox.html"> | ||
<link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html"> | ||
|
||
<iron-iconset-svg name="oobe-i18n-dropdown" size="24"> | ||
<svg> | ||
<defs> | ||
<!-- | ||
These icons are copied from Polymer's iron-icons and kept in sorted order. | ||
See http://goo.gl/Y1OdAq for instructions on adding additional icons. | ||
--> | ||
<g id="check"> | ||
<path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"> | ||
</path> | ||
</g> | ||
</defs> | ||
</svg> | ||
</iron-iconset-svg> | ||
|
||
<dom-module id="oobe-i18n-dropdown"> | ||
<template> | ||
<link rel="stylesheet" href="oobe_i18n_dropdown.css"> | ||
<paper-dropdown-menu no-label-float> | ||
<paper-listbox id="listboxDropdown" class="dropdown-content" | ||
on-iron-select="onSelect_" | ||
on-iron-deselect="onDeselect_"> | ||
<template is="dom-repeat" id="domRepeat" items="[[items]]"> | ||
<paper-item item="[[item]]" disabled="[[item.optionGroupName]]" | ||
hr$="[[item.optionGroupName]]"> | ||
<div class="option-entry flex horizontal layout justified" | ||
hidden="[[item.optionGroupName]]"> | ||
<div class="option-name"> | ||
[[item.title]] | ||
</div> | ||
<iron-icon icon="oobe-i18n-dropdown:check" class="selected-icon" | ||
hidden="[[!item.selected]]"> | ||
</iron-icon> | ||
</div> | ||
<div class="hr" hidden="[[!item.optionGroupName]]"></div> | ||
</paper-item> | ||
</template> | ||
</paper-listbox> | ||
</paper-dropdown-menu> | ||
<style include="md-select"></style> | ||
<div id="container" | ||
class="flex vertical layout center center-justified md-select-wrapper"> | ||
<select id="select" class="md-select" ></select> | ||
<span class="md-select-underline"></span> | ||
</div> | ||
</template> | ||
</dom-module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
chrome/browser/resources/settings/controls/settings_dropdown_menu.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
chrome/browser/resources/settings/internet_page/network_apnlist.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
chrome/browser/resources/settings/internet_page/network_nameservers.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
chrome/browser/resources/settings/passwords_and_forms_page/credit_card_edit_dialog.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
chrome/browser/resources/settings/search_page/search_page.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
chrome/browser/resources/settings/site_settings/media_picker.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
chrome/browser/resources/settings/site_settings/site_details_permission.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters