#1955 Different selector in order to make it possible to change the text color for flowcharts vis classDef statements

This commit is contained in:
Knut Sveidqvist
2021-03-23 19:22:10 +01:00
parent a5cc75c1f7
commit 87458657f8
4 changed files with 44 additions and 18 deletions

View File

@@ -301,6 +301,12 @@ const render = function(id, _txt, cb, container) {
userStyles += `\n.${className} > * { ${classes[className].styles.join(
' !important; '
)} !important; }`;
userStyles += `\n.${className} span { ${classes[className].styles.join(
' !important; '
)} !important; }`;
userStyles += `\n.${className} tspan { ${classes[className].styles.join(
' !important; '
)} !important; }`;
if (classes[className].textStyles) {
userStyles += `\n.${className} tspan { ${classes[className].textStyles.join(
' !important; '