Skip to content

Commit

Permalink
Style the flow chart labels via SCSS
Browse files Browse the repository at this point in the history
  • Loading branch information
stanhu committed Jul 21, 2019
1 parent 83b7163 commit 745970c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/diagrams/flowchart/flowRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export const addVertices = function (vert, g, svgId) {
tspan.setAttributeNS('http://www.w3.org/XML/1998/namespace', 'xml:space', 'preserve')
tspan.setAttribute('dy', '1em')
tspan.setAttribute('x', '1')
tspan.setAttribute('fill', '#333')
tspan.textContent = rows[j]
svgLabel.appendChild(tspan)
}
Expand Down
2 changes: 2 additions & 0 deletions src/themes/flowchart.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
color: #333;
}

.label text { fill: #333 }

.node rect,
.node circle,
.node ellipse,
Expand Down

0 comments on commit 745970c

Please sign in to comment.