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

SSR Branch Dark Mode #97

Open
connorabbas opened this issue Dec 31, 2024 · 0 comments
Open

SSR Branch Dark Mode #97

connorabbas opened this issue Dec 31, 2024 · 0 comments

Comments

@connorabbas
Copy link
Owner

Updates from: #96 have improved the dark mode toggle simplicity, but removed the saved cookie that the server can use (to add the dark class via the app.blade.php file).

Either create a new composable, or alter the <ToggleDarkModeButton /> component to save the dark mode preference as a cookie that can be set in the blade file template on the server, avoiding the flash of light mode that happens on the client side.

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

No branches or pull requests

1 participant