mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Fix button card color when off (#19685)
This commit is contained in:
parent
65a8518d99
commit
aed0a35c9c
@ -302,6 +302,8 @@ export class HuiButtonCard extends LitElement implements LovelaceCard {
|
|||||||
iconColorCSS,
|
iconColorCSS,
|
||||||
css`
|
css`
|
||||||
ha-card {
|
ha-card {
|
||||||
|
--state-inactive-color: var(--paper-item-icon-color, #44739e);
|
||||||
|
--state-color: var(--paper-item-icon-color, #44739e);
|
||||||
--mdc-ripple-color: var(--state-color);
|
--mdc-ripple-color: var(--state-color);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -325,9 +327,8 @@ export class HuiButtonCard extends LitElement implements LovelaceCard {
|
|||||||
width: 40%;
|
width: 40%;
|
||||||
height: auto;
|
height: auto;
|
||||||
max-height: 80%;
|
max-height: 80%;
|
||||||
color: var(--state-color, var(--paper-item-icon-color, #44739e));
|
color: var(--state-color);
|
||||||
--mdc-icon-size: 100%;
|
--mdc-icon-size: 100%;
|
||||||
--state-inactive-color: var(--paper-item-icon-color, #44739e);
|
|
||||||
transition: transform 180ms ease-in-out;
|
transition: transform 180ms ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user