Here is my custom element and than you can see on the screenshot the comments that break the styles
@customElement('icon-icon')
export class Icon extends LitElement {
@property({type: String})
icon='';
@property({type: String})
color='';
static get styles() {
return css`
.icon {
color: var(--icon-color);
}
.icon::after {
content: var(--icon-content);
}
`;
}
render() {
return html`
<style>
:host {
--icon-content: var(--icon-${this.icon});
--icon-color: var(--color-${this.color});
}
</style>
<i class="icon"></i>
`;
}
}
Does somebody has any idea? Thanx!