diff --git a/cypress/integration/other/configuration.spec.js b/cypress/integration/other/configuration.spec.js
index c2f1533b2..8563a1120 100644
--- a/cypress/integration/other/configuration.spec.js
+++ b/cypress/integration/other/configuration.spec.js
@@ -96,5 +96,13 @@ describe('Configuration', () => {
.should('exist')
.and('include', 'url(http://localhost');
});
+ it('should not taint the initial configuration when using multiple directives', () => {
+ const url = 'http://localhost:9000/regression/issue-1874.html';
+ cy.viewport(1440, 1024);
+ cy.visit(url);
+
+ cy.get('svg');
+ cy.percySnapshot();
+ });
});
});
diff --git a/cypress/platform/knsv.html b/cypress/platform/knsv.html
index 3129beaed..a40b16ab4 100644
--- a/cypress/platform/knsv.html
+++ b/cypress/platform/knsv.html
@@ -18,7 +18,7 @@
display: none;
}
.mermaid svg {
- font-size: 36px !important;
+ font-size: 12px !important;
}
@@ -94,18 +94,45 @@ flowchart TD
C <-...-> E4
C ======> E5
-
-graph TD
- L1 --- L2
- L2 --- C
- M1 ---> C
- R1 .-> R2
- R2 <.-> C
- C -->|Label 1| E1
- C -- Label 2 ---> E2
- C ----> E3
- C -----> E4
- C ======> E5
+
+ graph TB
+ A
+ B
+ subgraph foo[Foo SubGraph]
+ C
+ D
+ end
+ subgraph bar[Bar SubGraph]
+ E
+ F
+ end
+ G
+
+ A-->B
+ B-->C
+ C-->D
+ B-->D
+ D-->E
+ E-->A
+ E-->F
+ F-->D
+ F-->G
+ B-->G
+ G-->D
+
+ style foo fill:#F99,stroke-width:2px,stroke:#F0F,color:darkred
+ style bar fill:#999,stroke-width:10px,stroke:#0F0,color:blue
+
+
+ %%{init:{"theme":"base", "themeVariables": {"primaryColor":"#411d4e", "titleColor":"white", "darkMode":true}}}%%
+flowchart LR
+subgraph A
+ a --> b
+end
+subgraph B
+ i -->f
+end
+A --> B
diff --git a/src/diagrams/flowchart/styles.js b/src/diagrams/flowchart/styles.js
index c282445b3..968f781ac 100644
--- a/src/diagrams/flowchart/styles.js
+++ b/src/diagrams/flowchart/styles.js
@@ -69,9 +69,9 @@ const getStyles = options =>
.cluster span {
color: ${options.titleColor};
}
- .cluster div {
- color: ${options.titleColor};
- }
+ // .cluster div {
+ // color: ${options.titleColor};
+ // }
div.mermaidTooltip {
position: absolute;