mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-01 13:37:47 +00:00
Update icon_color_css.ts (#6385)
* Update icon_color_css.ts Adding the "group" data-domain to CSS check for active coloring. This fixes ha-icon to change to the active color based on an "on" state. * Update icon_color_css.ts Adding, home, open, locked, and problem to the list.
This commit is contained in:
parent
135232d880
commit
e60e306426
@ -19,7 +19,13 @@ export const iconColorCSS = css`
|
||||
ha-icon[data-domain="sun"][data-state="above_horizon"],
|
||||
ha-icon[data-domain="switch"][data-state="on"],
|
||||
ha-icon[data-domain="timer"][data-state="active"],
|
||||
ha-icon[data-domain="vacuum"][data-state="cleaning"] {
|
||||
ha-icon[data-domain="vacuum"][data-state="cleaning"],
|
||||
ha-icon[data-domain="group"][data-state="on"],
|
||||
ha-icon[data-domain="group"][data-state="home"],
|
||||
ha-icon[data-domain="group"][data-state="open"],
|
||||
ha-icon[data-domain="group"][data-state="locked"],
|
||||
ha-icon[data-domain="group"][data-state="problem"]
|
||||
{
|
||||
color: var(--paper-item-icon-active-color, #fdd835);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user