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
Mermaid sequence diagrams: alt fragment titles rendering in odd ways #4783
Comments
Very similar to #4713 |
Thanks for reporting. We likely don't provide styles for this node, as we haven't encountered it yet. Should be an easy fix, adding the necessary selectors. If you want to go ahead, a PR is very much appreciated! Styles are defined here: mkdocs-material/src/assets/javascripts/components/content/code/mermaid/index.css Lines 313 to 377 in 745201a
|
Cool! Thanks for pointing me in the right direction. Looking into this further I noticed that the alt fragment titles that are rendering incorrectly are not in I'm not sure if there is an issue somewhere else that is causing this text not to go into a This fix feels a little too hacky to me? But I can go ahead and open a PR if this looks sufficient. |
All of Mermaid integration is kind of a hack, due to the way Mermaid.js works 😂 Yes, please PR the change, but please PR it to |
Haha makes sense. PR opened! Thank you! |
Oh wait I see my fix branch was not created against feature/material-v9. Will redo the PR when I get back to my computer |
Fixed in fc6a368. |
Released as part of 9.0.0. |
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
Mermaid's sequence diagrams support alt fragements: https://mermaid.js.org/syntax/sequenceDiagram.html#alt
They work great! However in light mode some of the titles are bolded and then when switching to dark mode some of the titles are unreadable.
Light mode issue:
Dark mode issue:
Expected behaviour
The titles should be readable and consistent fonts
Actual behaviour
Some titles are bold, and black on black text is not readable
Steps to reproduce
Create a sequence diagram like so:
Toggle between light and dark mode.
Package versions
Configuration
System information
The text was updated successfully, but these errors were encountered: