mermaidjs / mermaid-live-editor

Location has moved to https://github.com/mermaid-js/mermaid-live-editor
https://mermaidjs.github.io/mermaid-live-editor/
MIT License
977 stars 181 forks source link

Support styling classes #10

Closed joostas closed 6 years ago

joostas commented 6 years ago

ClassDef and class doesn't change style of elements. See example below:

graph TD A[Christmas] -->|Get money| B(Go shopping) B --> C{Let me think} C -->|One| D[Laptop] C -->|Two| E[iPhone] C -->|Three| F[Car]

style A fill:#f00 classDef def fill: #f00 class B def

Style changes fill color of A element. But assignment of class def to element B doesn't change fill color of B.

tylerlong commented 6 years ago

I confirm that classDef of mermaid 7.1.0 is broken.

tylerlong commented 6 years ago

Fixed.