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

Unified Diff: chrome/browser/resources/md_downloads/vulcanized.html

Issue 2294563002: MD WebUI (History, Settings, Downloads): autofocus big search box (Closed)
Patch Set: vulcanize Created 4 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/app.vulcanized.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_downloads/vulcanized.html
diff --git a/chrome/browser/resources/md_downloads/vulcanized.html b/chrome/browser/resources/md_downloads/vulcanized.html
index a16b2c99b0b14c2d26eae0677c4b9ba1c8a3ceb3..373760da5fe714facaee18e91a5ef9be701df61a 100644
--- a/chrome/browser/resources/md_downloads/vulcanized.html
+++ b/chrome/browser/resources/md_downloads/vulcanized.html
@@ -2854,17 +2854,10 @@ paper-button {
width: 100%;
}
- /*
- * Margin needs to be animated to prevent jumping around during
- * opening/closing. -webkit-margin-start is not animatable, so we have to
- * use regular margin-left/right instead.
- */
- :host-context([dir=ltr]):host([narrow][showing-search]) #icon {
- margin-left: 18px;
- }
-
- :host-context([dir=rtl]):host([narrow][showing-search]) #icon {
- margin-right: 18px;
+ :host-context([dir=ltr]):host([narrow][showing-search]) #icon,
+ :host-context([dir=ltr]):host([narrow][showing-search])
+ paper-spinner-lite {
+ -webkit-margin-start: 18px;
}
</style>
<paper-spinner-lite active="[[isSpinnerShown_(spinnerActive, showingSearch)]]">
@@ -2873,7 +2866,7 @@ paper-button {
</paper-icon-button>
<paper-input-container id="searchTerm" on-search="onSearchTermSearch" on-keydown="onSearchTermKeydown" no-label-float="">
<label id="prompt" for="searchInput">[[label]]</label>
- <input is="iron-input" id="searchInput" type="search" on-blur="onInputBlur_" incremental="">
+ <input is="iron-input" id="searchInput" type="search" on-blur="onInputBlur_" incremental="" autofocus="">
</paper-input-container>
<paper-icon-button icon="cr:cancel" id="clearSearch" title="[[clearLabel]]" hidden$="[[!hasSearchText_]]" on-tap="hideSearch_">
</paper-icon-button>
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/app.vulcanized.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698