Open
Description
I see some patterns like this:
static get styles() {
return css`
label,
input {
cursor: pointer;
}
`;
}
Because you're using TypeScript you can write this with standard JS field syntax:
static get styles = css`
label,
input {
cursor: pointer;
}
`;
It's a little nicer to read and has slightly better performance in inheritance use-cases (in Lit 2 at least).
Metadata
Metadata
Assignees
Labels
No labels