Skip to content

Commit

Permalink
Merge pull request Polymer#3602 from danbeam/patch-2
Browse files Browse the repository at this point in the history
add more style[include] doc
  • Loading branch information
Steve Orvell committed Apr 21, 2016
2 parents e57eb49 + d339b28 commit 409ad83
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/lib/custom-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,25 @@
}
</style>
<dom-module id="shared-style">
<template>
<style>
:root {
--shared-background-color: #bada55;
}
</style>
</template>
</dom-module>
<style is="custom-style" include="shared-style">
body {
background-color: var(--shared-background-color);
}
</style>
</head>
<body>
Expand Down Expand Up @@ -89,6 +107,8 @@
* Specify `include` to identify a `dom-module` containing style data which
* should be used within the `custom-style`. By using `include` style data
* may be shared between multiple different `custom-style` elements.
*
* To include multiple `dom-modules`, use `include="module1 module2"`.
*/
include: String
},
Expand Down

0 comments on commit 409ad83

Please sign in to comment.