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

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

Issue 2311093002: MD WebUI: Use dom-if to control hidden elements in <cr-toolbar> (Closed)
Patch Set: Fix tests Created 4 years, 3 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/md_downloads/vulcanized.html
diff --git a/chrome/browser/resources/md_downloads/vulcanized.html b/chrome/browser/resources/md_downloads/vulcanized.html
index 35c3c9d60cfe14d71c580d838687f0cb01c2ba94..dfdfbb7774a4c45314a83ca040c15ce23e10f334 100644
--- a/chrome/browser/resources/md_downloads/vulcanized.html
+++ b/chrome/browser/resources/md_downloads/vulcanized.html
@@ -3258,16 +3258,20 @@ input[type='search']::-webkit-search-decoration, input[type='search']::-webkit-s
}
</style>
- <paper-spinner-lite active="[[isSpinnerShown_(spinnerActive, showingSearch)]]">
- </paper-spinner-lite>
+ <template is="dom-if" if="[[isSpinnerShown_]]">
+ <paper-spinner-lite active="">
+ </paper-spinner-lite>
+ </template>
<paper-icon-button id="icon" icon="cr:search" title="[[label]]" tabindex$="[[computeIconTabIndex_(narrow)]]">
</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="" autofocus="">
</paper-input-container>
- <paper-icon-button icon="cr:cancel" id="clearSearch" title="[[clearLabel]]" hidden$="[[!hasSearchText_]]" on-tap="hideSearch_">
- </paper-icon-button>
+ <template is="dom-if" if="[[hasSearchText_]]">
+ <paper-icon-button icon="cr:cancel" id="clearSearch" title="[[clearLabel]]" on-tap="hideSearch_">
+ </paper-icon-button>
+ </template>
</template>
</dom-module>
<dom-module id="cr-toolbar" assetpath="chrome://resources/cr_elements/cr_toolbar/" css-build="shadow">
« no previous file with comments | « chrome/browser/resources/md_downloads/crisper.js ('k') | chrome/browser/resources/md_history/app.crisper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698