Skip to content

Commit

Permalink
Fixes missing buttons by changing paper-icon-button to ha-icon-button
Browse files Browse the repository at this point in the history
  • Loading branch information
SeraphimSerapis committed Jun 15, 2020
1 parent 618b446 commit c52699b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
24 changes: 12 additions & 12 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,21 +322,21 @@ class BannerCard extends LitElement {
${mediaTitle}
</div>
<div class="entity-state-right media-controls">
<paper-icon-button
<ha-icon-button
icon="mdi:skip-previous"
role="button"
@click=${this._service(domain, "media_previous_track", entity)}
></paper-icon-button>
<paper-icon-button
></ha-icon-button>
<ha-icon-button
icon="${isPlaying ? "mdi:stop" : "mdi:play"}"
role="button"
@click=${this._service(domain, action, entity)}
></paper-icon-button>
<paper-icon-button
></ha-icon-button>
<ha-icon-button
icon="mdi:skip-next"
role="button"
@click=${this._service(domain, "media_next_track", entity)}
></paper-icon-button>
></ha-icon-button>
</div>
</div>
</div>
Expand Down Expand Up @@ -365,23 +365,23 @@ class BannerCard extends LitElement {
<div class="entity-state" style="${this.grid(size)}">
${entityName(name, onClick)}
<span class="entity-value">
<paper-icon-button
<ha-icon-button
?disabled=${isopen}
icon="hass:arrow-up"
role="button"
@click=${this._service("cover", "open_cover", entity)}
></paper-icon-button>
<paper-icon-button
></ha-icon-button>
<ha-icon-button
icon="hass:stop"
role="button"
@click=${this._service("cover", "stop_cover", entity)}
></paper-icon-button>
<paper-icon-button
></ha-icon-button>
<ha-icon-button
?disabled=${isclosed}
icon="hass:arrow-down"
role="button"
@click=${this._service("cover", "close_cover", entity)}
></paper-icon-button>
></ha-icon-button>
</span>
</div>
`;
Expand Down
2 changes: 1 addition & 1 deletion src/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default css`
cursor: pointer;
}
paper-icon-button {
ha-icon-button {
width: var(--bc-button-size);
height: var(--bc-button-size);
padding: var(--bc-spacing);
Expand Down

0 comments on commit c52699b

Please sign in to comment.