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

Unified Diff: chrome/browser/resources/settings/settings_page/settings_subpage_search.html

Issue 2092763004: [MD Settings] Implement search in material design passwords. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: indexOf -> includes Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/settings/settings_page/settings_subpage_search.html
diff --git a/chrome/browser/resources/settings/settings_page/settings_subpage_search.html b/chrome/browser/resources/settings/settings_page/settings_subpage_search.html
new file mode 100644
index 0000000000000000000000000000000000000000..b4a49b4270b7e06cd23bdc8ca7e271ed3bda78c4
--- /dev/null
+++ b/chrome/browser/resources/settings/settings_page/settings_subpage_search.html
@@ -0,0 +1,52 @@
+<link rel="import" href="chrome://resources/cr_elements/cr_search_field/cr_search_field_behavior.html">
+<link rel="import" href="chrome://resources/html/polymer.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input-container.html">
+<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input.html">
+
+<dom-module id="settings-subpage-search">
+ <template>
+ <style>
+ paper-input-container {
+ width: var(--paper-input-max-width);
+ }
+
+ input[type='search']::-webkit-search-cancel-button {
+ -webkit-appearance: none;
+ }
+
+ #prompt,
+ #searchInput {
+ color: var(--google-grey-500);
+ font-size: 13px;
+ line-height: 36px;
+ }
+
+ #clearSearch {
+ -webkit-margin-end: -8px;
+ -webkit-margin-start: 8px;
+ }
+
+ :root {
+ --paper-icon-button {
+ height: 36px;
+ width: 36px;
+ }
+
+ --paper-input-suffix: {
+ /* Required to align the icon in |clearSearch| vertically. */
+ line-height: 0;
+ }
+ }
+ </style>
+ <paper-input-container no-label-float on-search="onSearchTermSearch">
+ <label id="prompt">[[label]]</label>
+ <input is="iron-input" id="searchInput" type="search"
+ aria-labelledby="prompt" incremental>
+ </input>
+ <paper-icon-button suffix icon="cr:cancel" id="clearSearch"
+ on-tap="onTapClear_" title="[[clearLabel]]" hidden$="[[!lastValue_]]">
+ </paper-icon-button>
+ </paper-input-container>
+ </template>
+ <script src="settings_subpage_search.js"></script>
+</dom-module>

Powered by Google App Engine
This is Rietveld 408576698