Lit-html: ::part has been supported in Chrome 73 and ::theme soon (hopefully)

Created on 18 Jan 2019  路  2Comments  路  Source: Polymer/lit-html

I guess this is also part of the effort for webcomponentsjs's ShadyCSS to support that. What's the plan from the lit team for this feature?

Most helpful comment

Like Constructible StyleSheets, there's nothing really to do in lit-html for this, but there may be in LitElement.

All 2 comments

I know that there are a couple solutions both with downsides. Turns out it is hard to polyfill performantly.

Polymer team has an experimental one. https://github.com/PolymerLabs/part-theme

Vaadin has a mixin that they use for their components. https://github.com/vaadin/vaadin-themable-mixin

Like Constructible StyleSheets, there's nothing really to do in lit-html for this, but there may be in LitElement.

Was this page helpful?
0 / 5 - 0 ratings