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

Unified Diff: third_party/polymer/v1_0/components-chromium/paper-item/paper-item.html

Issue 1862213002: Roll third_party/polymer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove obsolete appearance_browsertest.js, result of a previous bad merge. Created 4 years, 8 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: third_party/polymer/v1_0/components-chromium/paper-item/paper-item.html
diff --git a/third_party/polymer/v1_0/components-chromium/paper-item/paper-item.html b/third_party/polymer/v1_0/components-chromium/paper-item/paper-item.html
index 2f4ceb98623701f50779e2a14905526532210147..5d7c30764257edd6bdea40091b9963c574b09c92 100644
--- a/third_party/polymer/v1_0/components-chromium/paper-item/paper-item.html
+++ b/third_party/polymer/v1_0/components-chromium/paper-item/paper-item.html
@@ -37,6 +37,18 @@ focus as well by setting its tabindex to -1.
<paper-item raised>Polymer Project</paper-item>
</a>
+If you are concerned about performance and want to use `paper-item` in a `paper-listbox`
+with many items, you can just use a native `button` with the `paper-item` class
+applied (provided you have correctly included the shared styles):
+
+ <style is="custom-style" include="paper-item-shared-styles"></style>
+
+ <paper-listbox>
+ <button class="paper-item" role="option">Inbox</button>
+ <button class="paper-item" role="option">Starred</button>
+ <button class="paper-item" role="option">Sent mail</button>
+ </paper-listbox>
+
### Styling
The following custom properties and mixins are available for styling:

Powered by Google App Engine
This is Rietveld 408576698