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

Commit

Permalink
add an id to the core-item inside the shadow-root so that it can be
Browse files Browse the repository at this point in the history
targeted for styling
  • Loading branch information
frankiefu committed Sep 19, 2014
1 parent 85ce4cd commit aa0a822
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core-submenu.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
margin-left: 20px;
}
To style the item for the submenu, do something like this:
core-submenu::shadow > #submenuItem {
color: blue;
}
@group Polymer Core Elements
@element core-submenu
@extends core-item
Expand All @@ -46,7 +52,7 @@

<link rel="stylesheet" href="core-submenu.css">

<core-item src="{{src}}" label="{{label}}" icon="{{icon}}" class="{{ {'core-selected' : active} | tokenList}}" on-tap="{{activate}}">
<core-item id="submenuItem" src="{{src}}" label="{{label}}" icon="{{icon}}" class="{{ {'core-selected' : active} | tokenList}}" on-tap="{{activate}}">
<content select=".item-content"></content>
</core-item>

Expand Down

0 comments on commit aa0a822

Please sign in to comment.