v0.11.8
What's Changed
- fix: apply
cssproperty style after template content so that it overrides any styles in atemplate… by @trusktr in #13- This is useful because if the
templatecontains<link>elements to import other styles, we typically want our element's local styles (the ones written in thecssproperty) to override or use the imported styles, rather than the imported styles overriding our local styles.
Example:class MyEl extends Element { template = () => html` <link href="./path/to/card.css" /> <div class="card"> ... </div> ` css = ` /* we want this to override the imported style */ .card { color: blue } ` }
- This is useful because if the
Full Changelog: v0.11.7...v0.11.8