Skip to content

Commit

Permalink
mermaid: Fix text rendering of edge labels (#710)
Browse files Browse the repository at this point in the history
I accidentally excluded this among other unrelated local changes because
I'm bad at `git add -p`.
  • Loading branch information
72636c authored Sep 10, 2024
1 parent afb1a77 commit 6b11591
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/little-pumas-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'scoobie': patch
---

mermaid: Fix text rendering of edge labels
5 changes: 3 additions & 2 deletions remark/mermaid/style.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/* Don't panic, Mermaid scopes all styles to the parent SVG ID */

* {
/* /~https://github.com/mermaid-js/mermaid/blob/v10.1.0/packages/mermaid/src/diagrams/gantt/styles.js#L3-L6 */
/* /~https://github.com/mermaid-js/mermaid/blob/v11.0.0/packages/mermaid/src/diagrams/gantt/styles.js#L3-L5 */
--mermaid-font-family: Roboto, 'Helvetica Neue', HelveticaNeue, Helvetica,
Arial, sans-serif;
--mermaid-font-size: 14px;

/* /~https://github.com/seek-oss/braid-design-system/blob/v31.14.0/lib/color/palette.ts */
/* /~https://github.com/seek-oss/braid-design-system/blob/braid-design-system%4032.23.1/packages/braid-design-system/src/lib/color/palette.ts */
--braid-blue-100: #e3f2fb;
--braid-blue-300: #98c9f1;
--braid-blue-700: #1d559d;
Expand Down Expand Up @@ -95,6 +95,7 @@ g.label foreignObject {
.edgeLabel span.edgeLabel {
background-color: transparent;

paint-order: stroke fill;
-webkit-text-stroke-color: #fff;
-webkit-text-stroke-width: 4px;
}
Expand Down

0 comments on commit 6b11591

Please sign in to comment.