mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 16:59:48 +02:00
fix: define gitBranchLabel
* in theme forest/dark
Define `gitBranchLabel[0-7]` in `theme-dark` and `theme-forest` to fix
invalid CSS for gitgraphs.
The values have been copied from [`theme-default`][1]).
[1]: 727bf30824/packages/mermaid/src/themes/theme-default.js (L296-L303)
This commit is contained in:
@@ -257,6 +257,14 @@ class Theme {
|
|||||||
this.gitInv5 = this.gitInv5 || invert(this.git5);
|
this.gitInv5 = this.gitInv5 || invert(this.git5);
|
||||||
this.gitInv6 = this.gitInv6 || invert(this.git6);
|
this.gitInv6 = this.gitInv6 || invert(this.git6);
|
||||||
this.gitInv7 = this.gitInv7 || invert(this.git7);
|
this.gitInv7 = this.gitInv7 || invert(this.git7);
|
||||||
|
this.gitBranchLabel0 = this.gitBranchLabel0 || invert(this.labelTextColor);
|
||||||
|
this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor;
|
||||||
|
this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor;
|
||||||
|
this.gitBranchLabel3 = this.gitBranchLabel3 || invert(this.labelTextColor);
|
||||||
|
this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor;
|
||||||
|
this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor;
|
||||||
|
this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor;
|
||||||
|
this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor;
|
||||||
|
|
||||||
this.tagLabelColor = this.tagLabelColor || this.primaryTextColor;
|
this.tagLabelColor = this.tagLabelColor || this.primaryTextColor;
|
||||||
this.tagLabelBackground = this.tagLabelBackground || this.primaryColor;
|
this.tagLabelBackground = this.tagLabelBackground || this.primaryColor;
|
||||||
|
@@ -261,6 +261,14 @@ class Theme {
|
|||||||
this.gitInv5 = this.gitInv5 || invert(this.git5);
|
this.gitInv5 = this.gitInv5 || invert(this.git5);
|
||||||
this.gitInv6 = this.gitInv6 || invert(this.git6);
|
this.gitInv6 = this.gitInv6 || invert(this.git6);
|
||||||
this.gitInv7 = this.gitInv7 || invert(this.git7);
|
this.gitInv7 = this.gitInv7 || invert(this.git7);
|
||||||
|
this.gitBranchLabel0 = this.gitBranchLabel0 || invert(this.labelTextColor);
|
||||||
|
this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor;
|
||||||
|
this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor;
|
||||||
|
this.gitBranchLabel3 = this.gitBranchLabel3 || invert(this.labelTextColor);
|
||||||
|
this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor;
|
||||||
|
this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor;
|
||||||
|
this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor;
|
||||||
|
this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor;
|
||||||
|
|
||||||
this.tagLabelColor = this.tagLabelColor || this.primaryTextColor;
|
this.tagLabelColor = this.tagLabelColor || this.primaryTextColor;
|
||||||
this.tagLabelBackground = this.tagLabelBackground || this.primaryColor;
|
this.tagLabelBackground = this.tagLabelBackground || this.primaryColor;
|
||||||
|
Reference in New Issue
Block a user