Fixed bad tertiary operator

This fixes the tertiary operator used to compute the `edgeLabelBackground` theme variable.
This commit is contained in:
Lishid
2020-10-22 21:55:13 -04:00
committed by GitHub
parent 74d09b5468
commit d473f3904a

View File

@@ -63,10 +63,8 @@ class Theme {
this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor;
this.defaultLinkColor = this.defaultLinkColor || this.lineColor;
this.titleColor = this.titleColor || this.tertiaryTextColor;
this.edgeLabelBackground =
this.edgeLabelBackground || this.darkMode
? darken(this.secondaryColor, 30)
: this.secondaryColor;
this.edgeLabelBackground = this.edgeLabelBackground ||
(this.darkMode ? darken(this.secondaryColor, 30) : this.secondaryColor);
this.nodeTextColor = this.nodeTextColor || this.primaryTextColor;
/* Sequence Diagram variables */