lit-element icon indicating copy to clipboard operation
lit-element copied to clipboard

[docs] Document static getStyles() for theme systems

Open justinfagnani opened this issue 4 years ago • 1 comments

See https://github.com/Polymer/lit-element/pull/866

Apps and design systems that want to add additional styles to a component should override getStyles(). Previously they might have tried to override finalize(), but style gathering has been moved from there.

justinfagnani avatar Jan 16 '20 02:01 justinfagnani

i don't know if is usefull for you problem i have made a little module lit-css-global-scope to import in the lit-element component the global style and preserve the shadowdom styles

ianes1978 avatar Apr 02 '20 09:04 ianes1978