Skip to content

Commit 448498b

Browse files
committed
fix(#273): Replaced --paper-item-icon-color with --state-icon-color
1 parent 8b4fa01 commit 448498b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Install through [HACS](https://hacs.xyz/)
7878
| color | string | **Optional** | var(--primary-color)| Color of the box. Example values: 'red', '#FFAA2C', 'rgb(255, 170, 44)', 'random' (assigns a random RGB color)
7979
| color_on_state | boolean | **Optional** | false | Color the box based on state value
8080
| color_limit | string | **Optional** | 1 | State value for coloring the box based on state value
81-
| color_above | string | **Optional** | var(--paper-item-icon-color)| Color for state value above color_limit
81+
| color_above | string | **Optional** | var(--state-icon-color)| Color for state value above color_limit
8282
| color_below | string | **Optional** | var(--primary-color)| Color for state value below color_limit
8383
| url | string | **Optional** | | Specifying a URL will make the entity label into a link
8484
| add_entities | list | **Optional** | | Experimental. List of entity ids. Their states will be added to this entity, showing a sum.

src/chart.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ export class Chart extends LitElement {
356356
}
357357
const colorLimit = entityConf.color_limit ?? 1;
358358
const colorBelow = entityConf.color_below ?? 'var(--primary-color)';
359-
const colorAbove = entityConf.color_above ?? 'var(--paper-item-icon-color)';
359+
const colorAbove = entityConf.color_above ?? 'var(--state-icon-color)';
360360
if (state4color > colorLimit) {
361361
finalColor = colorAbove;
362362
} else if (state4color < colorLimit) {

0 commit comments

Comments
 (0)