-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Styling subgraph? #391
Comments
I think its a great feature! And it is a great small functionality to start with for someone who want to to try to contribute. |
I'll take this feature! |
That stunds great. It's yours! |
Is that finished yet? |
Any progress on this? |
Also interested, any progress yet? |
👍 |
any news? |
where are we with this? |
Looking forward to this as well ;) |
This would really be handy about now. |
Need it here as well |
|
Bump |
1 similar comment
Bump |
Here's the downside: subgraph titles are also their IDs in OP's case. There would have to be a change to the DSL, something like: subgraph some-id[Some Subgraph Title]
...
end
This is because the following is currently valid mermaid: subgraph Some Subgraph Title
...
end
|
Submitted #845, which adds styling. Unfortunately, the maintainer seems to be absent. |
Wow! A fix for this one, wonderful! |
Mermaid v8.2.3 added support for styling in subgraphs, but if there are multiple words in a title, quotes are required. ``` graph TB SubGraph1 --> SubGraph1Flow subgraph "SubGraph 1 Flow" SubGraph1Flow(SubNode 1) SubGraph1Flow -- Choice1 --> DoChoice1 SubGraph1Flow -- Choice2 --> DoChoice2 end subgraph "Main Graph" Node1[Node 1] --> Node2[Node 2] Node2 --> SubGraph1[Jump to SubGraph1] SubGraph1 --> FinalThing[Final Thing] end ``` ``` graph TB SubGraph1 --> SubGraph1Flow subgraph SubGraph 1 Flow SubGraph1Flow(SubNode 1) SubGraph1Flow -- Choice1 --> DoChoice1 SubGraph1Flow -- Choice2 --> DoChoice2 end subgraph Main Graph Node1[Node 1] --> Node2[Node 2] Node2 --> SubGraph1[Jump to SubGraph1] SubGraph1 --> FinalThing[Final Thing] end ``` * mermaid-js/mermaid#845 * mermaid-js/mermaid#391 (comment) Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/65338
Mermaid v8.2.3 added support for styling in subgraphs, but if there are multiple words in a title, quotes are required. ``` graph TB SubGraph1 --> SubGraph1Flow subgraph "SubGraph 1 Flow" SubGraph1Flow(SubNode 1) SubGraph1Flow -- Choice1 --> DoChoice1 SubGraph1Flow -- Choice2 --> DoChoice2 end subgraph "Main Graph" Node1[Node 1] --> Node2[Node 2] Node2 --> SubGraph1[Jump to SubGraph1] SubGraph1 --> FinalThing[Final Thing] end ``` ``` graph TB SubGraph1 --> SubGraph1Flow subgraph SubGraph 1 Flow SubGraph1Flow(SubNode 1) SubGraph1Flow -- Choice1 --> DoChoice1 SubGraph1Flow -- Choice2 --> DoChoice2 end subgraph Main Graph Node1[Node 1] --> Node2[Node 2] Node2 --> SubGraph1[Jump to SubGraph1] SubGraph1 --> FinalThing[Final Thing] end ``` * mermaid-js/mermaid#845 * mermaid-js/mermaid#391 (comment) Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/65338
Mermaid v8.2.3 added support for styling in subgraphs, but if there are multiple words in a title, quotes are required. ``` graph TB SubGraph1 --> SubGraph1Flow subgraph "SubGraph 1 Flow" SubGraph1Flow(SubNode 1) SubGraph1Flow -- Choice1 --> DoChoice1 SubGraph1Flow -- Choice2 --> DoChoice2 end subgraph "Main Graph" Node1[Node 1] --> Node2[Node 2] Node2 --> SubGraph1[Jump to SubGraph1] SubGraph1 --> FinalThing[Final Thing] end ``` ``` graph TB SubGraph1 --> SubGraph1Flow subgraph SubGraph 1 Flow SubGraph1Flow(SubNode 1) SubGraph1Flow -- Choice1 --> DoChoice1 SubGraph1Flow -- Choice2 --> DoChoice2 end subgraph Main Graph Node1[Node 1] --> Node2[Node 2] Node2 --> SubGraph1[Jump to SubGraph1] SubGraph1 --> FinalThing[Final Thing] end ``` * mermaid-js/mermaid#845 * mermaid-js/mermaid#391 (comment) Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/65338
Mermaid v8.2.3 added support for styling in subgraphs, but if there are multiple words in a title, quotes are required. * mermaid-js/mermaid#845 * mermaid-js/mermaid#391 (comment) Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/65338
Mermaid v8.2.3 added support for styling in subgraphs, but if there are multiple words in a title, quotes are required. * mermaid-js/mermaid#845 * mermaid-js/mermaid#391 (comment) Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/65338
Why this issue has been closed ? It is not yet fixed, isn't it ? |
It meant to be closed with #845. If this issue persists for you please create a new one with a reproduction sample. |
It would be nice to be allow to style
subgraph
, the same way we can style nodes, for example like this to change subgraph background color:What do you think?
The text was updated successfully, but these errors were encountered: