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
Links are invisible on light colour schemes #3958
Comments
Configuration is very important. Are you using custom CSS? If so, that is the first thing I'd check. Considering that the official MkDocs Material documentation is generated with the project itself and does not suffer from invisible links on light color schemes, it seems to be most likely a local issue and not an issue with the project. |
Thanks for reporting. This can be reproduced by going to the primary color guide an clicking on |
Fixed in
This should reduce problems with combining different primary colors with light and dark color schemes. Note that there might still be cases where colors don't work well, but it's just too many combinations to optimize. I think we now have reasonable defaults in-place. Furthermore, I tried to flatten the selectors, which should lead to fewer specificity issues, especially when customizing. This change is currently only in Insiders but will be merged into the community edition in order to minimize friction. If all is fine with this change, I'll merge it when the next funding goal is reached (maybe mid-June). |
Released as part of 8.2.16+insiders-4.16.1. |
thanks for the fast fix!! |
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
I have tried to check the above four as much as possible, but I have not managed to fully reproduce a minimal example of this problem. We have seen it across a few sites since we upgraded the mkdocs-material version (without making other changes to the CSS etc, so I am fairly confident it is something that changed in MkDocs Material itself).
Links cannot be seen on light themes / when the background is white. Links show up when
Expected behaviour
Links can be seen by all users, regardless of theme.
Actual behaviour
Links cannot be seen, unless a dark theme is enabled.
Steps to reproduce
You can see this in action currently at https://codecapsules.io/docs/comparisons/ and all other links across the site.
Package versions
python --version
: Python 3.9.12mkdocs --version
: mkdocs, version 1.3.0pip show mkdocs-material | grep -E ^Version
8.2.15+insiders.4.16.0Configuration
I have tried and can't do this right now. I will keep working on it, but maybe you already know the answer :)
System information
MacOS
FireFox and Safari
The text was updated successfully, but these errors were encountered: