Skip to content

Commit 7d97395

Browse files
authored
Fix CSS causing white text on white background
Some of the CSS settings where overriding the text colors. Now set to default to var(--primary-text-color).
1 parent af744a4 commit 7d97395

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Diff for: flex-horseshoe-card.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* The Flexible Horseshoe Card.
1414
*
1515
* Refs:
16-
* - https://github.com/AmoebeLabs/Material-Design-Theme-Colors
16+
* - https://github.com/AmoebeLabs/flex-horseshoe-card
1717
*
1818
*******************************************************************************
1919
*/
@@ -499,27 +499,27 @@ class FlexHorseshoeCard extends LitElement {
499499
500500
.nam {
501501
alignment-baseline: central;
502-
fill: white;
502+
fill: var(--primary-text-color);
503503
}
504504
505505
.state__uom {
506506
font-size: 20px;
507507
opacity: 0.7;
508508
margin: 0;
509-
fill : white;
509+
fill : var(--primary-text-color);
510510
}
511511
512512
.state__value {
513513
font-size: 3em;
514514
opacity: 1;
515-
fill : white;
515+
fill : var(--primary-text-color);
516516
text-anchor: middle;
517517
}
518518
.entity__name {
519519
text-anchor: middle;
520520
overflow: hidden;
521521
opacity: 0.8;
522-
fill : white;
522+
fill : var(--primary-text-color);
523523
font-size: 1.5em;
524524
text-transform: uppercase;
525525
letter-spacing: 0.1em;
@@ -529,7 +529,7 @@ class FlexHorseshoeCard extends LitElement {
529529
font-size: 12px;
530530
opacity: 0.7;
531531
overflow: hidden;
532-
fill : white;
532+
fill : var(--primary-text-color);
533533
text-anchor: middle;
534534
text-transform: uppercase;
535535
letter-spacing: 0.1em;
@@ -634,19 +634,19 @@ class FlexHorseshoeCard extends LitElement {
634634
}
635635
636636
.line__horizontal {
637-
stroke: white;
637+
stroke: var(--primary-text-color);
638638
opacity: 0.3;
639639
stroke-width: 2;
640640
}
641641
642642
.line__vertical {
643-
stroke: white;
643+
stroke: var(--primary-text-color);
644644
opacity: 0.3;
645645
stroke-width: 2;
646646
}
647647
648648
.svg__dot {
649-
fill: white;
649+
fill: var(--primary-text-color);
650650
opacity: 0.5;
651651
align-self: center;
652652
transform-origin: 50% 50%;

0 commit comments

Comments
 (0)