Skip to content

Commit

Permalink
#2951 Fix for styling issue on labes when using htmlLabels in legacy …
Browse files Browse the repository at this point in the history
…flowcharts
  • Loading branch information
knsv committed May 10, 2022
1 parent 3cb9267 commit 6cea0fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/diagrams/flowchart/flowRenderer.js
Expand Up @@ -241,7 +241,9 @@ export const addEdges = function (edges, g) {

if (evaluate(getConfig().flowchart.htmlLabels)) {
edgeData.labelType = 'html';
edgeData.label = `<span id="L-${linkId}" class="edgeLabel L-${linkNameStart}' L-${linkNameEnd}">${edge.text.replace(
edgeData.label = `<span id="L-${linkId}" class="edgeLabel L-${linkNameStart}' L-${linkNameEnd}" style="${
edgeData.labelStyle
}">${edge.text.replace(
/fa[lrsb]?:fa-[\w-]+/g,
(s) => `<i class='${s.replace(':', ' ')}'></i>`
)}</span>`;
Expand Down

0 comments on commit 6cea0fd

Please sign in to comment.