-
Notifications
You must be signed in to change notification settings - Fork 11.5k
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
Table text is not readable when dark mode is disabled #2963
Comments
This is weird. Can you look more into it, like what changes happen when |
I have a lead on what is happening, but no understanding of why. In Firefox, if I open the site in either a private window, or on my laptop where I have set "Never remember history", tables get class |
I'd suggest also searching in our code and check what else this setting affects. But if I am going to guess, this probably happens because of how the classes are loaded during the first load. Probably the answer to all this lies in our assets/js/theme.js. |
I attempted to reproduce the issue, but it seems to be working fine on my end. |
Yes, simply disabling dark mode and running on dev mode is enough. Now, for some unknown reason whenever I put Since my default system setting is dark, I suspect the theme is getting the system setting and applying |
Hey, I'm seeing the same thing. With |
Have you checked that your issue isn't already filed?
Bug description
When dark mode is disabled, white text is displayed on white table backgrounds
How to reproduce the bug
Steps to reproduce:
_config.yml
:enable darkmode: true
->enable darkmode: false
https://jyelland.github.io
Error messages and logs
What operating system are you using?
Linux, Mac
Where are you seeing the problem on?
Deployed site, Running locally with Docker (docker compose)
More info
As far as I can tell, the problem is that when dark mode is disabled, some tables are given class
table-dark
. If I manually changetable-dark
totable
using Inspect in Firefox, text changes from white to black. However, it does not occur when I build locally usingdocker compose
on MacOS—text is black on white. I wonder if this is related to #1134?The text was updated successfully, but these errors were encountered: