-
Notifications
You must be signed in to change notification settings - Fork 68
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
issue with new dark mode of sphinx-tabs in themes that do not support dark mode #152
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
If I'm not wrong, this condition is critical .. sphinx-tabs/sphinx_tabs/static/tabs.css Lines 57 to 60 in 53b6a63
it means: when the browser |
@Helveg if you have time, could you have a look at this issue / thanks! |
Oh, I thought If introspection isn't possible we'll have to rely on users setting a flag in the config of this extension. The question then becomes: do we by default enable/disable support for light/dark? |
AFAIK not from within CSS .. I think dark theme support is only available when Why not simply remove the entire |
That block is used to select the theme when the browser preference is used. The So 3 cases:
So any theme that is always dark, or always light, should set the It's hard to decide what to do here, because the browser is telling us to use a dark theme, and the theme is not telling us anything. Opting to always render a light theme would reinstate the inverse problem of light code tabs in dark themes. |
Not really, all themes I know don't set
BTW: furo sets IMO it is just wrong to assume that "dark" is the default if Or I am wrong? |
It doesn't do that, it uses the browser setting. You're right though, |
Sorry wrong wording, more precise: it is just wrong to assume that "dark" is supported by the theme if data-theme is unset
Thanks a lot! BTW: as long #153 is merged I am also unable to overwrite the |
I'm not a maintainer of this project :( |
No problem, send your PR and then we can ask the maintainers to merge both PRs and build a new release. |
The myst-parser requires >= docutils v.0.17 what ends in a dependency hell where plugins sphinx-tabs and sphinx-jinja we use are involved. This patch can be reverted when [1], [2] and [3] are solved and new releases are available. [1] searxng#954 [2] executablebooks/sphinx-tabs#152 [3] executablebooks/sphinx-tabs#153 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
The myst-parser requires >= docutils v.0.17 what ends in a dependency hell where plugins sphinx-tabs and sphinx-jinja we use are involved. This patch can be reverted when [1], [2] and [3] are solved and new releases are available. [1] searxng#954 [2] executablebooks/sphinx-tabs#152 [3] executablebooks/sphinx-tabs#153 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
The myst-parser requires >= docutils v.0.17 what ends in a dependency hell where plugins sphinx-tabs and sphinx-jinja we use are involved. This patch can be reverted when [2], [3], [4] are solved and new release is available / see [1]. [1] searxng#954 [2] executablebooks/sphinx-tabs#152 [3] executablebooks/sphinx-tabs#153 [4] executablebooks/sphinx-tabs#154 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
The bugfix of sphinx-tabs issue 152 [1] has been released, we can bump the version and remove the interim return42/sphinx-tabs.git@fix-152 branch. [1] executablebooks/sphinx-tabs#152 [2] searxng#954 (comment) Closes: searxng#954 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Describe the bug
context
We use sphinx-tab and Pallets-Sphinx-Themes. Pallets-Sphinx-Themes does not have a dark theme.
Since
has been merged, we got dark tabs in a light theme, when the browser prefers a dark theme:
Rendered in a browser using light theme:
Reproduce the bug
Use sphinx-tabs in a theme that does not have a dark theme and setup your browser to use dark theme.
EDIT: with 7915f63 reverted, the issue is fixed.
The text was updated successfully, but these errors were encountered: