We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 637d111 commit 80802eaCopy full SHA for 80802ea
src/led-element.ts
@@ -55,7 +55,7 @@ export class LEDElement extends LitElement {
55
56
render() {
57
const { color, lightColor, flip } = this;
58
- const lightColorActual = lightColor || lightColors[color] || '#ff8080';
+ const lightColorActual = lightColor || lightColors[color?.toLowerCase()] || '#ff8080';
59
const opacity = this.brightness ? 0.3 + this.brightness * 0.7 : 0;
60
const lightOn = this.value && this.brightness > Number.EPSILON;
61
const xScale = flip ? -1 : 1;
0 commit comments