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

Unified Diff: chrome/browser/resources/md_history/app.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_history/app.vulcanized.html
diff --git a/chrome/browser/resources/md_history/app.vulcanized.html b/chrome/browser/resources/md_history/app.vulcanized.html
index fd2c226fbb414743f4c787e60b6881e675875f61..4889e3c6e05cd82d13e6fa5eba4174776c725ad9 100644
--- a/chrome/browser/resources/md_history/app.vulcanized.html
+++ b/chrome/browser/resources/md_history/app.vulcanized.html
@@ -2685,16 +2685,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">

Powered by Google App Engine
This is Rietveld 408576698