mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 08:50:13 +02:00
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`.
This commit is contained in:
@@ -46,6 +46,7 @@ class Theme {
|
|||||||
this.secondaryTextColor = this.secondaryTextColor || invert(this.secondaryColor);
|
this.secondaryTextColor = this.secondaryTextColor || invert(this.secondaryColor);
|
||||||
this.tertiaryTextColor = this.tertiaryTextColor || invert(this.tertiaryColor);
|
this.tertiaryTextColor = this.tertiaryTextColor || invert(this.tertiaryColor);
|
||||||
this.lineColor = this.lineColor || invert(this.background);
|
this.lineColor = this.lineColor || invert(this.background);
|
||||||
|
this.arrowheadColor = this.arrowheadColor || invert(this.background);
|
||||||
this.textColor = this.textColor || this.primaryTextColor;
|
this.textColor = this.textColor || this.primaryTextColor;
|
||||||
|
|
||||||
/* Flowchart variables */
|
/* Flowchart variables */
|
||||||
|
Reference in New Issue
Block a user