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 FOUC #39

Merged
merged 3 commits into from
Feb 10, 2019
Merged

Fix dark mode FOUC #39

merged 3 commits into from
Feb 10, 2019

Conversation

wKovacs64
Copy link
Owner

FWIW, I hate all the style definition duplication this requires but it provides a better UX so it's worth it to me at this time.

I would rather use CSS custom properties (variables), but I have to support IE11 at the moment. css-vars-ponyfill exists, but it is currently only capable of transforming variables defined at the :root-level, which makes it relatively worthless for this use case as we would still have to have separate style definitions for body.light-mode and body.dark-mode just like in this PR (gaining nothing).

@wKovacs64 wKovacs64 merged commit d4e7307 into develop Feb 10, 2019
@wKovacs64 wKovacs64 deleted the use-dark-mode branch February 10, 2019 21:52
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.

None yet

1 participant