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

Commit

Permalink
add docs for styling core-item in the light dom
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Sep 19, 2014
1 parent aa0a822 commit 9cd14fe
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions core-submenu.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,21 @@
core-submenu::shadow > #submenuItem {
color: blue;
}
To style all the `core-item`s in the light DOM:
polyfill-next-selector { content: 'core-submenu > #submenu > core-item'; }
core-submenu > core-item {
color: red;
}
The above will style `Topic1` and `Topic2` to have font color red.
<core-submenu icon="settings" label="Topics">
<core-item label="Topic1"></core-item>
<core-item label="Topic2"></core-item>
</core-submenu>
@group Polymer Core Elements
@element core-submenu
@extends core-item
Expand Down

0 comments on commit 9cd14fe

Please sign in to comment.