From d473f3904a1464763d2d57bcd6f9a0922e0e3d2f Mon Sep 17 00:00:00 2001 From: Lishid Date: Thu, 22 Oct 2020 21:55:13 -0400 Subject: [PATCH] Fixed bad tertiary operator This fixes the tertiary operator used to compute the `edgeLabelBackground` theme variable. --- src/themes/theme-base.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/themes/theme-base.js b/src/themes/theme-base.js index e90a1b0f5..633212e92 100644 --- a/src/themes/theme-base.js +++ b/src/themes/theme-base.js @@ -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 */