Closed return42 closed 2 years ago
@foster999 sorry for being impatient again .. can you merge and release?
Its not only my project also documentation from many other projects are suffered by this issue / e.g. all projects at RTD that are using sphinx-tabs (without pinning an old version) ..
By example, switch your browser to prefer dark mode and visit RTD / e.g.: https://sphinx-notfound-page.readthedocs.io/en/latest/installation.html
Another example is sphnix-tabs @ RTD itself: https://sphinx-tabs.readthedocs.io/en/latest/
Thanks!
Merging #154 (f19ff0d) into master (53b6a63) will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #154 +/- ##
=======================================
Coverage 92.69% 92.69%
=======================================
Files 2 2
Lines 219 219
=======================================
Hits 203 203
Misses 16 16
Flag | Coverage Δ | |
---|---|---|
pytests | 92.69% <ø> (ø) |
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 53b6a63...f19ff0d. Read the comment docs.
I'm sure you don't need me to tell you that not pinning your dependencies is a bad idea 😉
I'm sure you don't need me to tell you that not pinning your dependencies is a bad idea
Depends .. pinning a library at major version level is often common .. applications are often pinned at minor level (to get bug fixes) .. but it is handled different in the projects.
EDIT forgot to say / thanks for review & merge!
@foster999 could you deploy a bugfix release (3.3.1) at PyPI .. thanks!
@return42 new version is released :)
Thanks very much for this fix @return42
Before this patch the CSS implementation assumes that "dark" is supported by the theme if the
data-theme
attribute of the<body>
tag is unset.Since most themes are using "light" colors (compare https://sphinx-themes.org) and do not set
data-theme
it is better to assume light is the default, even when the browser settingprefers-color-scheme: dark
!BTW: remove duplication of styles from dark/light theme that are already set in the common style.
To test enable dark mode in your browser (prefers-color-scheme: dark).
Current master (default theme):
After this patch applied (default theme):
I also tested
furo
theme which supports a dark/light mode. This is the result when browser (prefers-color-scheme: dark):BTW: the result is the same if you toggle from "auto" to "dark".
And here is the result when you toggle into "light" mode ..
Closes: #152