-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
Contribution guidelines
- I've read the contribution guidelines and wholeheartedly agree
I've found a bug and checked that ...
- ... the problem doesn't occur with the
mkdocsorreadthedocsthemes - ... the problem persists when all overrides are removed, i.e.
custom_dir,extra_javascriptandextra_css - ... the documentation does not mention anything about my problem
- ... there are no open or closed issues that are related to my problem
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 from
mkdocs-material/src/assets/javascripts/components/content/code/mermaid/index.css
Lines 340 to 347 in 60ea10a
| /* Sequence message, loop and note text */ | |
| .messageText, | |
| .loopText > tspan, | |
| .noteText > tspan { | |
| font-family: var(--md-mermaid-font-family) !important; | |
| fill: var(--md-mermaid-edge-color); | |
| stroke: none; | |
| } |
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
- Operating system: Whatever the docs CI is using.
- Browser: Firefox