From 9ec76f7ecbebe31ee0a77908d0c923c604bf8da8 Mon Sep 17 00:00:00 2001 From: Knut Sveidqvist Date: Sun, 24 Jan 2021 08:31:16 +0100 Subject: [PATCH] #1865 Additional styling fixes --- src/diagrams/flowchart/styles.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/diagrams/flowchart/styles.js b/src/diagrams/flowchart/styles.js index 071c5378c..54d3e2f3b 100644 --- a/src/diagrams/flowchart/styles.js +++ b/src/diagrams/flowchart/styles.js @@ -3,9 +3,16 @@ const getStyles = options => font-family: ${options.fontFamily}; color: ${options.nodeTextColor || options.textColor}; } + .cluster-label text { + fill: ${options.titleColor}; + } + .cluster-label span { + color: ${options.titleColor}; + } - .label text { + .label text,span { fill: ${options.nodeTextColor || options.textColor}; + color: ${options.nodeTextColor || options.textColor}; } .node rect, @@ -55,11 +62,6 @@ const getStyles = options => stroke-width: 1px; } - .cluster text,span { - fill: ${options.titleColor}; - color: ${options.titleColor}; - } - div.mermaidTooltip { position: absolute; text-align: center;