-
-
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 label texts #50
Comments
Will take a look at this! |
Label generation will change a bit as a result of #58, and this will include the possibility to style the text in labels. It will also mean that the background color for edge labels will become unavailable for a while, but work is in progress to improve the dare-d3 library which generates the labels to support background styling again. Both background and text will then be stylable with CSS classes. |
@bjowes: Any news for this one? |
No significant progress yet due to lack of time. I am still planning to complete it eventually, but if someone else is interested in contributing, I would happily share my thoughts on how we can achieve this. |
@bjowes any progress on this one? |
Same question here. :) I want give labels the same color of lines between nodes. |
gh-50 Allow styling of edge labels in css
There is a variable for this in the themes, edgeLabelBackground. This is for the text labels. I am closing this overdue issue. I am trying to cleanup the issues. If there still is an issue, repoen it or create a new on for the specific issue. Thnks |
If I am right styling label text is not quite possible right now. For me replacing
<span style="background:#e8e8e8">
in main.js to<span class="mermaid-label">
solves the problem but in this case to stay compatible with the current output a default .css file should be added to the project.Am I using it wrong or a PR like that would be welcome?
The text was updated successfully, but these errors were encountered: