Closed asampal closed 6 years ago
Can you provide more details about the situation? Is this happening in mermaid preview mode or in the build-in markdown viewer? Also an example and a screenshot would be nice. Thanks!
Sure, you can see the way alt and loop should look (along with the source) when labeled, here. The plugin currently doesn't display labels. If you can add these labels, please include them for "opt" as well.
Ok, so for this diagram:
sequenceDiagram
foo->>bar: hello
alt good
bar->>foo: everything's cool
else bad
bar->>foo: uh oh
end
loop keep doing it!
foo->>baz: do it!
end
I'm getting the following results:
The caption text is black in the dark theme.
Yup, that's what I'm using - I guess I should've looked harder. It really is close to invisible on my monitor. Could this be changed?
I'll notify upstream.
Has there been any progress on this issue?
The solution should come from mermaid itself due to the way it handles the CSS.
You might speed things up by commenting on the mermaid issue referenced above.
Hi @vstirbu looks like the upstream issue has been closed, will that solution filter down to the plugin?
The issue was not completely fixed upstream, but the api has been extended to allow custom CSS. In the end the custom css for dark theme should be incorporated upstream, although for now we do it here.
.loopText tspan {
fill: inherit;
}
It would be nice to have cases and loops show the name provided in the source.