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
Illegible text color in dark scheme for mermaid diagram #4517
Comments
Thank for reporting. If you're dissecting my code to incorporate into another project, a PR is very much appreciated. Note that Also, please make sure that all other diagrams still work in light and dark modes. |
Sorry the rendered CSS is a bit different from the src CSS, and I just searched for the I prefer to only merge updates from stable releases, but if we can get the fix for this from this repo's main branch, then I might break that tradition for just this time. |
Thanks for your help! You need to set up the theme development process to preview your changes, but given that you use this project downstream, it should be a good idea anyways.
I'm not sure what you mean by stable releases, because our |
Yeah, the workflow downstream is pretty much the same.
Oh, good to know. I'll still try to focus only on tagged commits (my interpretation of "stable releases"), so it would be easier to help diagnose bug reports (if/when we get them downstream). That way your changelog/release description(s) is more useful 😄 |
Released as part of 8.5.8. |
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
If a picture is worth a thousand words, then please observe these snapshots from the mkdocs-material docs
But notice that the "post-it note" node is legible in the light scheme:
Expected behaviour
If the node's bg color is static, then I would expect the text color also be static and legible.
After playing with it in my browser (Firefox), I was able to achieve expected behavior by removing the
.noteText > tspan
specifier frommkdocs-material/src/assets/javascripts/components/content/code/mermaid/index.css
Lines 340 to 347 in 60ea10a
Actual behaviour
See description
Steps to reproduce
Whatever the docs CI is doing.
Package versions
I'm merging updates from here (v8.5.6) into sphinx-immaterial and I noticed this in our rendered docs (local only for now). After checking with the docs here, I found the same problem.
Configuration
See this repo's mkdocs config.
System information
The text was updated successfully, but these errors were encountered: