Version warning hard to read in dark mode #5062
-
I copied the version warning html from the documentation: https://squidfunk.github.io/mkdocs-material/setup/setting-up-versioning/?h=ver#version-warning. However, there is not enough contrast between the version warning background and link color in dark mode. Additionally, the background clashes with the header color. Would this be easy to fix? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You're right – dark mode doesn't currently work particularly well with the version warning. Could I please ask you to create a new issue with a minimal reproduction? It's likely an easy fix then. |
Beta Was this translation helpful? Give feedback.
-
Fixed in 981ee65. The version warning will now always use the light scheme, so it's consistent: Additionally, two new CSS variables were introduced that allow for overriding the background and foreground color: mkdocs-material/src/assets/stylesheets/main/_colors.scss Lines 114 to 116 in 981ee65 |
Beta Was this translation helpful? Give feedback.
Fixed in 981ee65. The version warning will now always use the light scheme, so it's consistent:
Additionally, two new CSS variables were introduced that allow for overriding the background and foreground color:
mkdocs-material/src/assets/stylesheets/main/_colors.scss
Lines 114 to 116 in 981ee65