Skip to content

Commit

Permalink
Merge pull request #10 from epsimatic/patch-1
Browse files Browse the repository at this point in the history
Add "unavailable" state for buttons
  • Loading branch information
paulbdavis authored Oct 17, 2019
2 parents b667cea + f7fae7f commit 59de604
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions button-entity-row.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ class ButtonEntityRow extends LitElement {
.button-inactive {
color: var(--paper-item-icon-color);
}
.button-unavailable {
color: var(--state-icon-unavailable-color);
}
`
}

Expand Down Expand Up @@ -205,6 +208,8 @@ class ButtonEntityRow extends LitElement {
return "button-active"
case "off":
return "button-inactive"
case "unavailable":
return "button-unavailable"
default:
return "button-default"
}
Expand Down

0 comments on commit 59de604

Please sign in to comment.