Skip to content

Commit

Permalink
Fix embedded mermaid css to fix class diagram arrow heads
Browse files Browse the repository at this point in the history
Originally used id based selecters, which doesn't work as the ids are made unique.
Replacing them with class based selectors fixes this.
  • Loading branch information
Willem Kokke committed Feb 5, 2025
1 parent a890d6e commit 0a98686
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,19 +171,15 @@ g.classGroup text {
}

/* Class extension, composition and dependency marker */
defs #classDiagram-extensionStart,
defs #classDiagram-extensionEnd,
defs #classDiagram-compositionStart,
defs #classDiagram-compositionEnd,
defs #classDiagram-dependencyStart,
defs #classDiagram-dependencyEnd {
defs marker.marker.extension.class path,
defs marker.marker.composition.class path ,
defs marker.marker.dependency.class path {
fill: var(--md-mermaid-edge-color) !important;
stroke: var(--md-mermaid-edge-color) !important;
}

/* Class aggregation marker */
defs #classDiagram-aggregationStart,
defs #classDiagram-aggregationEnd {
defs marker.marker.aggregation.class path {
fill: var(--md-mermaid-label-bg-color) !important;
stroke: var(--md-mermaid-edge-color) !important;
}
Expand Down

0 comments on commit 0a98686

Please sign in to comment.