From 54f827d850de40148201d4fcf9c8f41907fbada4 Mon Sep 17 00:00:00 2001 From: Alois Klink Date: Thu, 13 Apr 2023 06:24:20 +0100 Subject: [PATCH] fix: define `arrowheadColor` for `theme-base` Define `arrowheadColor` as `invert(this.background)` in `theme-base.js`, as it's currently `undefined`, which causes CSS issues when using `theme-base`. I've picked `invert(this.background)` so that it matches the default value of `lineColor`. --- packages/mermaid/src/themes/theme-base.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/mermaid/src/themes/theme-base.js b/packages/mermaid/src/themes/theme-base.js index a3d4a738f..ba95843b6 100644 --- a/packages/mermaid/src/themes/theme-base.js +++ b/packages/mermaid/src/themes/theme-base.js @@ -46,6 +46,7 @@ class Theme { this.secondaryTextColor = this.secondaryTextColor || invert(this.secondaryColor); this.tertiaryTextColor = this.tertiaryTextColor || invert(this.tertiaryColor); this.lineColor = this.lineColor || invert(this.background); + this.arrowheadColor = this.arrowheadColor || invert(this.background); this.textColor = this.textColor || this.primaryTextColor; /* Flowchart variables */