diff --git a/src/shared/state-info.ts b/src/shared/state-info.ts index 330fc8ac4..28613bc98 100644 --- a/src/shared/state-info.ts +++ b/src/shared/state-info.ts @@ -1,18 +1,18 @@ import { css, CSSResultGroup, html, LitElement, nothing, TemplateResult } from "lit"; -import { property, customElement } from "lit/decorators.js"; +import { customElement, property } from "lit/decorators.js"; @customElement("mushroom-state-info") export class StateItem extends LitElement { - @property() public primary: string = ""; + @property({ attribute: false }) public primary?: string | TemplateResult<1>; - @property() public secondary?: string; + @property({ attribute: false }) public secondary?: string | TemplateResult<1>; - @property() public multiline_secondary?: boolean = false; + @property({ type: Boolean }) public multiline_secondary?: boolean = false; protected render(): TemplateResult { return html`
- ${this.primary} + ${this.primary ?? ""} ${this.secondary ? html` diff --git a/src/utils/theme.ts b/src/utils/theme.ts index 74a5f1a78..3a3fc02d5 100644 --- a/src/utils/theme.ts +++ b/src/utils/theme.ts @@ -26,8 +26,8 @@ export const themeVariables = css` --card-secondary-line-height: var(--mush-card-secondary-line-height, 16px); --card-primary-color: var(--mush-card-primary-color, var(--primary-text-color)); --card-secondary-color: var(--mush-card-secondary-color, var(--primary-text-color)); - --card-primary-letter-spacing: var(--mush-card-secondary-color, 0.1px); - --card-secondary-letter-spacing: var(--mush-card-secondary-color, 0.4px); + --card-primary-letter-spacing: var(--mush-card-primary-letter-spacing, 0.1px); + --card-secondary-letter-spacing: var(--mush-card-secondary-letter-spacing, 0.4px); /* Chips */ --chip-spacing: var(--mush-chip-spacing, 8px);