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

fix: dark mode #1116

Merged
merged 1 commit into from
Sep 6, 2024
Merged

fix: dark mode #1116

merged 1 commit into from
Sep 6, 2024

Conversation

tomasohCHOM
Copy link
Collaborator

Fixes #1114

image

These icons were affected because of a change to how we handled dark mode. In order to take advantage of SSR and prevent theme flickering on page load, we used html data attributes and cookies to persist preferences. That means we no longer needed to have the .dark and the .light class names, which I forgot to check for other places where the codebase used those.

Switched from using body.light and body.dark to html[data-theme='light' and html[data-theme='dark' instead.

Copy link

netlify bot commented Sep 6, 2024

Deploy Preview for acmcsuf ready!

Name Link
🔨 Latest commit 550080c
🔍 Latest deploy log https://app.netlify.com/sites/acmcsuf/deploys/66db41190afc72000812ce45
😎 Deploy Preview https://deploy-preview-1116--acmcsuf.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@26samaahmed 26samaahmed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@26samaahmed 26samaahmed merged commit a7943c7 into main Sep 6, 2024
5 checks passed
@tomasohCHOM tomasohCHOM deleted the fix/event-icons branch September 6, 2024 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Icons aren't visible on dark mode when events are created
2 participants