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

Styling Links Label Background #3121

Open
flywire opened this issue Jun 11, 2022 · 2 comments
Open

Styling Links Label Background #3121

flywire opened this issue Jun 11, 2022 · 2 comments
Labels
Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect

Comments

@flywire
Copy link
Contributor

flywire commented Jun 11, 2022

Describe the bug

Cannot set specific link label background color.

Only option is to customise entire theme in diagram using edgeLabelBackground

To Reproduce

Steps to reproduce the behavior:

flowchart
    A-->|test|B
    linkStyle 0 stroke:#ff3,stroke-width:4px,color:red,background-color:lime;

image

Expected behavior

Set lime link label background color (instead of default gray) using background-color based on https://github.com/mermaid-js/mermaid/blob/develop/src/diagrams/flowchart/styles.js#L74

See https://stackoverflow.com/q/72545748/4539999

@flywire flywire added Status: Triage Needs to be verified, categorized, etc Type: Bug / Error Something isn't working or is incorrect labels Jun 11, 2022
@knsv
Copy link
Collaborator

knsv commented Aug 20, 2022

This should be made easier

@jsalsman
Copy link

{
  "theme": "neutral"
}

Is the easiest workaround for this. (Under "Config" in the online editor.)

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