mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-04 06:39:40 +02:00
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`.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user