-
Notifications
You must be signed in to change notification settings - Fork 482
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
docs: add dark-mode capability #2896
base: main
Are you sure you want to change the base?
Conversation
Welcome @meysam81! |
Hi @meysam81. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
/release-note-none |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: meysam81, youngnick The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
ping @youngnick @shaneutt |
Hey @meysam81, thanks for adding this! Do you mind changing the default to still be light mode? We still have a variety of graphics that haven't been adapted to work well on dark mode, so I don't think we're ready to use that as a default in any case, but I think it's fine if people want to manually opt in. |
@robscott |
Yep, until we can update the graphics to adjust for dark mode, I think we need to default to the light mode. I default to dark mode on my computers but would still personally prefer the light mode on the website until we can also make corresponding updates to our graphics. For example, just looking at the main page, both the diagram and logo do not look ideal with dark mode. I think it's great to offer the choice, I just wouldn't want dark mode to be default for anyone quite yet. |
@robscott |
kindly take a look 🙏 |
@meysam81 I may be missing something, but at least for me on Chrome, it's still defaulting to dark mode (matching my system preferences). |
Would you try again, please? This last change should do it. |
Hey @meysam81, sadly still seeing the same results on Chrome and Safari where it defaults to dark mode for me (matching my OS). |
@robscott Does it by any chance have a different outcome when clearing cookies and/or trying from incognito I wonder? |
Yep, incognito and private modes respectively. |
The behavior of the theme following the system preferences seems to be a design decision, as explained here: squidfunk/mkdocs-material#7093 (reply in thread) It seems like this PR can be accepted or rejected as is because, as far as my understanding goes, there can't be a configuration change that can force the light mode on a system with a dark-mode preference. 🤷 |
Blocked on #3146 then it seems: /hold |
@meysam81: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Folks, I recommend aligning with the Kubernetes website work on this - see kubernetes/website#45535 Obviously we don't have to align, but our users are likely to prefer consistent over inconsistent user experience. |
You can use CSS to do something close
and then optionally let people opt in to something that overrides that |
What type of PR is this?
/kind documentation
What this PR does / why we need it:
Having the ability to choose between dark and light mode is crucial when reading documents online behind LED lights. This PR is an effort to make that a reality for people who prefer reading in dark mode, especially myself.
Which issue(s) this PR fixes:
N/A
Does this PR introduce a user-facing change?:
Just the docs.