Skip to content

Using LitElement styles is considered as a property #213

Open
@NeilujD

Description

@NeilujD

I am working on a POC on my own and it seems like web-component-analyzer is considering static styles as a component property.

Example:

my-element.ts

...
@customElement('my-element')
export class MyElement extends LitElement {
    static styles = css`
        :host {
            display: block;
        }
    `
...

custom-elements.json

...
"properties": [
    {
        "name": "styles",
        "type": "CSSResultGroup",
        "default": "\"css`\\n        :host {\\n            display: block;\\n}\\n    `\""
    },
...

I am using web-component-analyzer 1.1.6 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions