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

Unified Diff: polymer_0.5.4/bower_components/paper-dropdown-menu/paper-dropdown-menu.html

Issue 895523005: Added Polymer 0.5.4 (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 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: polymer_0.5.4/bower_components/paper-dropdown-menu/paper-dropdown-menu.html
diff --git a/polymer_0.5.0/bower_components/paper-dropdown-menu/paper-dropdown-menu.html b/polymer_0.5.4/bower_components/paper-dropdown-menu/paper-dropdown-menu.html
similarity index 95%
copy from polymer_0.5.0/bower_components/paper-dropdown-menu/paper-dropdown-menu.html
copy to polymer_0.5.4/bower_components/paper-dropdown-menu/paper-dropdown-menu.html
index adcca1b53bc02eb19529f52a4510a89b7c4cf135..bc9972bc85812a88c1a32419c5941af0a76e84a1 100644
--- a/polymer_0.5.0/bower_components/paper-dropdown-menu/paper-dropdown-menu.html
+++ b/polymer_0.5.4/bower_components/paper-dropdown-menu/paper-dropdown-menu.html
@@ -36,6 +36,7 @@ This example renders a drop-down menu with 4 options.
@group Paper Elements
@element paper-dropdown-menu
@extends core-dropdown-base
+@mixins Polymer.CoreFocusable https://github.com/polymer/core-focusable
@status unstable
@homepage github.io
-->
@@ -93,7 +94,7 @@ contains the selection state.
outline: none;
}
- #label, #arrow {
+ #label:not(.selectedItem), #arrow {
color: #757575;
}
@@ -164,8 +165,10 @@ contains the selection state.
selectAction: function(e) {
var detail = e.detail;
if (detail.isSelected) {
+ this.$.label.classList.add('selectedItem');
this.selectedItemLabel = detail.item.label || detail.item.textContent;
} else {
+ this.$.label.classList.remove('selectedItem');
this.selectedItemLabel = '';
}
}

Powered by Google App Engine
This is Rietveld 408576698