Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
update docs, bower.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvonne Yip committed Sep 8, 2014
1 parent 9f1e160 commit ee1e957
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "core-dropdown",
"name": "core-dropdown-menu",
"private": false,
"dependencies": {
"polymer": "Polymer/polymer#master",
Expand Down
14 changes: 9 additions & 5 deletions core-dropdown-menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
Example:
<core-dropdown-menu selected="Financier" valueattr="label">
<core-item label="Croissant"></core-item>
<core-item label="Donut"></core-item>
<core-item label="Financier"></core-item>
<core-item label="Madeleine"></core-item>
<core-item label="Croissant"></core-item>
<core-item label="Donut"></core-item>
<core-item label="Financier"></core-item>
<core-item label="Madeleine"></core-item>
</core-dropdown-menu>
This example renders a drop-down menu with 4 options, with the option `Financier` pre-selected.
Expand All @@ -31,10 +31,14 @@
Example:
core-dropdown-menu::shadow #dropdown {
background-color: #eee;
border: 1px solid #ccc;
}
The `#dropdown` element's background must be transparent for the included transition to work.
Style the background of the drop-down menu with `CoreStyle.g.paperMenuButton.background` instead:
CoreStyle.g.paperMenuButton.background = 'red';
@group Polymer Core Elements
@element core-dropdown-menu
@status beta
Expand Down

0 comments on commit ee1e957

Please sign in to comment.