Skip to content
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

linkStyle link color doesn't work with flowchart-elk #4739

Open
DanWillans opened this issue Aug 16, 2023 · 2 comments
Open

linkStyle link color doesn't work with flowchart-elk #4739

DanWillans opened this issue Aug 16, 2023 · 2 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@DanWillans
Copy link

DanWillans commented Aug 16, 2023

Description

When I attempt to set the link colour in a flowchart-elk it doesn't work like it does with flowchart.

Steps to reproduce

  1. Using this example
flowchart-elk LR
    A -->|link| B

    %% Define linkstyles
    linkStyle 0 stroke:#ff0000,color:red

will give this chart where you can see the line colour is wrong.

  1. Using normal flowchart
flowchart LR
    A -->|link| B

    %% Define linkstyles
    linkStyle 0 stroke:#ff0000,color:red

Gives a graph like this where the line colour is right:

Screenshots

No response

Code Sample

No response

Setup

  • Mermaid version: Latest
  • Browser and Version: chrome latest, firefox latest, mermaid-cli latest

Suggested Solutions

No response

Additional Context

No response

@DanWillans DanWillans added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Aug 16, 2023
@roboknight
Copy link

roboknight commented Nov 17, 2023

Have run into the same issue. It also doesn't respect subgraph styling if you have something like:

graph TD
    classDef COLORING fill:yellow, stroke:black, stroke-width:2px, color:black
    subgraph SG["Subgraph"]
      a-->b
      b-->a
    end
    SG:::COLORING

@ronaldsuwandi
Copy link

It seems to ignore both stroke and stroke-width properties. Only color property work for the label

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect
Projects
None yet
Development

No branches or pull requests

3 participants