#926 Applying the color styling on the label instead of the node

This commit is contained in:
knsv
2019-09-08 02:56:06 -07:00
parent ece40cdc54
commit e37f5a6eb2
7 changed files with 44 additions and 13 deletions

View File

@@ -308,17 +308,18 @@ describe('Flowcart', () => {
{})
})
fit('should render color of styled nodes', async () => {
it('should render color of styled nodes', async () => {
await imgSnapshotTest(page, `
graph LR
foo-->bar
classDef foo fill:lightblue,color:green,stroke:#FF9E2C,font-weight:bold
style foo fill:#F99,stroke-width:2px,stroke:#F0F
style bar fill:#999,color: #ffffff, stroke-width:10px,stroke:#0F0
style bar fill:#999,color: #00ff00, stroke-width:10px,stroke:#0F0
`,
{
listUrl: true,
listId: 'color'
listUrl: false,
listId: 'color styling',
logLevel: 0
})
})