Created
April 17, 2018 15:09
-
-
Save dlockhart/a044505509a9d923a05d255d849469e0 to your computer and use it in GitHub Desktop.
Example of a bug in Polymer 2 style modules
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dom-module id="foo-element"> | |
<template strip-whitespace> | |
<style> | |
:host { | |
display: inline-block; | |
} | |
</style> | |
<button>foo</button> | |
</template> | |
<script> | |
Polymer({ | |
is: 'foo-element' | |
}); | |
</script> | |
</dom-module> | |
<dom-module id="foo-module"> | |
<template> | |
<style> | |
.foo { | |
background-color: red; | |
} | |
</style> | |
</template> | |
</dom-module> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment