#5237 Fix of label styling

This commit is contained in:
Knut Sveidqvist
2024-06-25 15:19:12 +02:00
parent c221350d59
commit fc31b22eb0
7 changed files with 91 additions and 32 deletions

View File

@@ -581,6 +581,20 @@ style AState fill:#636,border:1px solid red,color:white;
{ logLevel: 0, fontFamily: 'courier' }
);
});
it(' should allow styles to take effect in stubgraphs', () => {
imgSnapshotTest(
`
stateDiagram
state roundWithTitle {
C: Black with white text
}
D: Black with white text
style C,D stroke:#00f, fill:black, color:white
`,
{ logLevel: 0, fontFamily: 'courier' }
);
});
});
it('1433: should render a simple state diagram with a title', () => {
imgSnapshotTest(