From 720408e1439d4d537849aa58687a3da6bb2379b5 Mon Sep 17 00:00:00 2001 From: Alois Klink Date: Thu, 13 Apr 2023 06:27:09 +0100 Subject: [PATCH] fix: define `border2` for `theme-base` `border2` is a theme variable used by the CSS for flowcharts and user-journey. I've defined this to default to `tertiaryBorderColor` in theme-base, as other themes tend to set `border2` to the same value as `clusterBorder`, which in theme-base is `tertiaryBorderColor`. --- packages/mermaid/src/themes/theme-base.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/mermaid/src/themes/theme-base.js b/packages/mermaid/src/themes/theme-base.js index ba95843b6..f3da6f1a4 100644 --- a/packages/mermaid/src/themes/theme-base.js +++ b/packages/mermaid/src/themes/theme-base.js @@ -49,6 +49,9 @@ class Theme { this.arrowheadColor = this.arrowheadColor || invert(this.background); this.textColor = this.textColor || this.primaryTextColor; + // TODO: should this instead default to secondaryBorderColor? + this.border2 = this.border2 || this.tertiaryBorderColor; + /* Flowchart variables */ this.nodeBkg = this.nodeBkg || this.primaryColor; this.mainBkg = this.mainBkg || this.primaryColor;