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

Commit 77e2e05

Browse files
author
Yvonne Yip
committed
core-dropdown updates, new demo
1 parent ec6d149 commit 77e2e05

File tree

3 files changed

+381
-62
lines changed

3 files changed

+381
-62
lines changed

core-menu-button.css

+8
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,12 @@ license that can be found in the LICENSE file.
77
:host {
88
position: relative;
99
display: inline-block;
10+
}
11+
12+
#dropdown {
13+
margin: 12px;
14+
background: #fff;
15+
color: #000;
16+
border-radius: 3px;
17+
border: 1px solid #ccc;
1018
}

core-menu-button.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<link rel="stylesheet" href="core-menu-button.css">
3939
<core-icon-button id="button" on-tap="{{toggle}}" src="{{src}}" icon="{{icon}}" active="{{opened}}"><span>{{label}}</span></core-icon-button>
4040
<core-dropdown id="dropdown" relatedTarget="{{$.button}}" opened="{{opened}}" halign="{{halign}}" valign="{{valign}}">
41-
<core-menu selected="{{selected}}" selectedItem="{{selectedItem}}" selectedClass="{{selectedClass}}" valueattr="{{valueattr}}" on-core-select="{{closeAction}}">
41+
<core-menu selected="{{selected}}" selectedItem="{{selectedItem}}" selectedClass="{{selectedClass}}" valueattr="{{valueattr}}" on-core-activate="{{closeAction}}">
4242
<content select="*"></content>
4343
</core-menu>
4444
</core-dropdown>
@@ -84,14 +84,14 @@
8484
* @attribute halign
8585
* @type string
8686
*/
87-
halign: 'auto',
87+
halign: 'left',
8888

8989
/**
9090
* Display the overlay on top or below the button.
9191
* @attribute valign
9292
* @type string
9393
*/
94-
valign: 'auto'
94+
valign: 'top'
9595

9696
},
9797

0 commit comments

Comments
 (0)