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

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

Issue 1221923003: Update bower.json for Polymer elements and add PRESUBMIT.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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-menu/paper-menu.html
diff --git a/third_party/polymer/v1_0/components-chromium/paper-menu/paper-menu.html b/third_party/polymer/v1_0/components-chromium/paper-menu/paper-menu.html
index 5233d19eb2f867a8db5a72998c5d05b567f81ca4..4553813fbc452f9c8fdf96f6e112a888a8a9d3e5 100644
--- a/third_party/polymer/v1_0/components-chromium/paper-menu/paper-menu.html
+++ b/third_party/polymer/v1_0/components-chromium/paper-menu/paper-menu.html
@@ -19,6 +19,13 @@ is highlighted, and the selected item has bolded text.
<paper-item>Item 2</paper-item>
</paper-menu>
+An initial selection can be specified with the `selected` attribute.
+
+ <paper-menu selected="0">
+ <paper-item>Item 1</paper-item>
+ <paper-item>Item 2</paper-item>
+ </paper-menu>
+
Make a multi-select menu with the `multi` attribute. Items in a multi-select menu can be deselected,
and multiple item can be selected.
@@ -34,7 +41,7 @@ The following custom properties and mixins are available for styling:
Custom property | Description | Default
----------------|-------------|----------
`--paper-menu-background-color` | Menu background color | `--primary-background-color`
-`-paper-menu-color` | Menu foreground color | `--primary-text-color`
+`--paper-menu-color` | Menu foreground color | `--primary-text-color`
`--paper-menu-disabled-color` | Foreground color for a disabled item | `--disabled-text-color`
`--paper-menu` | Mixin applied to the menu | `{}`
`--paper-menu-selected-item` | Mixin applied to the selected item | `{}`
@@ -83,7 +90,7 @@ of a menu item will also focus it.
position: relative;
outline: 0;
- @apply(--paper-menu-colored-focused-item);
+ @apply(--paper-menu-focused-item);
}
.content > ::content > *:focus:after {
@@ -93,7 +100,7 @@ of a menu item will also focus it.
opacity: 0.12;
content: '';
- @apply(--paper-menu-colored-focused-item-after);
+ @apply(--paper-menu-focused-item-after);
}
.content > ::content > *[colored]:focus:after {

Powered by Google App Engine
This is Rietveld 408576698