Fixed a rendering issue introduced while trying to fix dark mode. This should fix the rendering of note text for all current themes.

This commit is contained in:
Chris Moran 2020-06-14 13:42:25 -04:00
parent 0e85c814e1
commit 9d413680d9
No known key found for this signature in database
GPG Key ID: FBD13F2A0E1B9152
11 changed files with 1959 additions and 727 deletions

1185
dist/mermaid.core.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1464
dist/mermaid.js vendored

File diff suppressed because one or more lines are too long

2
dist/mermaid.js.map vendored

File diff suppressed because one or more lines are too long

12
dist/mermaid.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -31,6 +31,7 @@ $labelTextColor: $mainContrastColor;
$loopTextColor: $mainContrastColor;
$noteBorderColor: $border2;
$noteBkgColor: #fff5ad;
$noteTextColor: $mainBkg;
$activationBorderColor: $border1;
$activationBkgColor: $secondBkg;
$sequenceNumberColor: white;

View File

@ -29,6 +29,7 @@ $labelTextColor: $actorTextColor;
$loopTextColor: $actorTextColor;
$noteBorderColor: $border2;
$noteBkgColor: #fff5ad;
$noteTextColor: $actorTextColor;
$activationBorderColor: #666;
$activationBkgColor: #f4f4f4;
$sequenceNumberColor: white;

View File

@ -30,6 +30,7 @@ $labelTextColor: $actorTextColor;
$loopTextColor: $actorTextColor;
$noteBorderColor: $border2;
$noteBkgColor: #fff5ad;
$noteTextColor: $actorTextColor;
$activationBorderColor: #666;
$activationBkgColor: #f4f4f4;
$sequenceNumberColor: white;

View File

@ -34,6 +34,7 @@ $labelTextColor: $text;
$loopTextColor: $text;
$noteBorderColor: darken($note, 60%);
$noteBkgColor: $note;
$noteTextColor: $actorTextColor;
$activationBorderColor: #666;
$activationBkgColor: #f4f4f4;
$sequenceNumberColor: white;

View File

@ -75,8 +75,8 @@ text.actor > tspan {
fill: $noteBkgColor;
}
.noteText {
fill: $actorBkg;
.noteText, .noteText > tspan {
fill: $noteTextColor;
stroke: none;
}
@ -94,14 +94,3 @@ text.actor > tspan {
fill: $activationBkgColor;
stroke: $activationBorderColor;
}
g > rect[class="note"] {
stroke: $noteBorderColor;
fill: $noteBkgColor;
}
g > text[class="noteText"] > tspan {
stroke: $actorBkg;
fill: $actorBkg;
stroke-width: 1px;
}