mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08: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:
parent
54f827d850
commit
720408e143
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user