Skip to content

Commit

Permalink
Fixes #139 (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocorti authored Jun 1, 2022
1 parent c2df3d1 commit 554c77c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ class BannerCard extends LitElement {
const htmlContent = this.renderValue(
{ ...data, value, unit, click: action },
() => html`
<mwc-button ?dense=${true} @click=${action}>
<ha-button ?dense=${true} @click=${action}>
${value} ${unit}
</mwc-button>
</ha-button>
`
);
return html`
Expand Down Expand Up @@ -381,12 +381,12 @@ class BannerCard extends LitElement {
<div class="entity-state" style="${this.grid(size)}">
${entityName(name, onClick)}
<span class="entity-value">
<mwc-switch
<ha-switch
style="--mdc-theme-secondary: ${color};"
?checked=${state === "on"}
@click=${this._service(domain, "toggle", entity)}
>
</mwc-switch>
</ha-switch>
</span>
</div>
`;
Expand Down
4 changes: 2 additions & 2 deletions src/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ export default css`
color: white;
}
mwc-button {
ha-button {
--mdc-theme-primary: white;
}
mwc-switch {
ha-switch {
--mdc-theme-secondary: white;
}
`;

0 comments on commit 554c77c

Please sign in to comment.