Skip to content

Commit

Permalink
Fix CSS causing white text on white background
Browse files Browse the repository at this point in the history
Some of the CSS settings where overriding the text colors. Now set to default to var(--primary-text-color).
  • Loading branch information
AmoebeLabs authored Sep 21, 2019
1 parent af744a4 commit 7d97395
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions flex-horseshoe-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* The Flexible Horseshoe Card.
*
* Refs:
* - https://github.com/AmoebeLabs/Material-Design-Theme-Colors
* - https://github.com/AmoebeLabs/flex-horseshoe-card
*
*******************************************************************************
*/
Expand Down Expand Up @@ -499,27 +499,27 @@ class FlexHorseshoeCard extends LitElement {
.nam {
alignment-baseline: central;
fill: white;
fill: var(--primary-text-color);
}
.state__uom {
font-size: 20px;
opacity: 0.7;
margin: 0;
fill : white;
fill : var(--primary-text-color);
}
.state__value {
font-size: 3em;
opacity: 1;
fill : white;
fill : var(--primary-text-color);
text-anchor: middle;
}
.entity__name {
text-anchor: middle;
overflow: hidden;
opacity: 0.8;
fill : white;
fill : var(--primary-text-color);
font-size: 1.5em;
text-transform: uppercase;
letter-spacing: 0.1em;
Expand All @@ -529,7 +529,7 @@ class FlexHorseshoeCard extends LitElement {
font-size: 12px;
opacity: 0.7;
overflow: hidden;
fill : white;
fill : var(--primary-text-color);
text-anchor: middle;
text-transform: uppercase;
letter-spacing: 0.1em;
Expand Down Expand Up @@ -634,19 +634,19 @@ class FlexHorseshoeCard extends LitElement {
}
.line__horizontal {
stroke: white;
stroke: var(--primary-text-color);
opacity: 0.3;
stroke-width: 2;
}
.line__vertical {
stroke: white;
stroke: var(--primary-text-color);
opacity: 0.3;
stroke-width: 2;
}
.svg__dot {
fill: white;
fill: var(--primary-text-color);
opacity: 0.5;
align-self: center;
transform-origin: 50% 50%;
Expand Down

0 comments on commit 7d97395

Please sign in to comment.