Skip to content
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

[Chore] Set dark theme with cookie #10531

Closed
wants to merge 1 commit into from
Closed

Conversation

kodster28
Copy link
Contributor

@kodster28 kodster28 commented Aug 31, 2023

Helps with the accessibility audit work happening in #10513 (so we can trigger the test in dark and light mode via a cookie, which is a lot easier than other methods).

It's sorta a pain to test, but if you set your local preferences to auto / light and then manually set the cookie in Chrome, it should work.

@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5cab1a4
Status: ✅  Deploy successful!
Preview URL: https://ab86cc7d.cloudflare-docs-7ou.pages.dev
Branch Preview URL: https://dark-theme-by-cookie.cloudflare-docs-7ou.pages.dev

View logs

@github-actions
Copy link

Files with changes (up to 15)

Original Link Updated Link

@kodster28 kodster28 changed the title [Chore] Add a cookie check for setting dark theme [Chore] Set dark theme with cookie Aug 31, 2023
@kodster28 kodster28 closed this Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant