Skip to content

v0.11.8

Compare
Choose a tag to compare
@trusktr trusktr released this 10 Sep 05:59
· 36 commits to main since this release

What's Changed

  • fix: apply css property style after template content so that it overrides any styles in a template… by @trusktr in #13
    • This is useful because if the template contains <link> elements to import other styles, we typically want our element's local styles (the ones written in the css property) 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 }
        `
      }

Full Changelog: v0.11.7...v0.11.8