Skip to content

Commit

Permalink
Avoid namespace collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasloven committed Mar 13, 2021
1 parent d9b9f4f commit 270ed37
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,16 @@ entities:

### Changing icons

With card-mod installed, the `<ha-icon>` element - used e.g. by `entities`, `glance` and many more cards - will set it's icon to the value found in the CSS variable `--icon` (if present).
With card-mod installed, the `<ha-icon>` element - used e.g. by `entities`, `glance` and many more cards - will set it's icon to the value found in the CSS variable `--card-mod-icon` (if present).

It will also set the icon color to the value found in the CSS variable `--icon-color` if present. This ignores entity state, but will still dim.
It will also set the icon color to the value found in the CSS variable `--card-mod-icon-color` if present. This ignores entity state, but will still dim.

```yaml
- entity: light.bed_light
card_mod:
style: |
:host {
--icon: mdi:bed;
--card-mod-icon: mdi:bed;
}
```

Expand Down
Loading

0 comments on commit 270ed37

Please sign in to comment.