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

Proll 284/fix dar theme blinking #11

Merged
merged 6 commits into from
May 20, 2024
Merged

Conversation

Fermatka
Copy link
Collaborator

@Fermatka Fermatka commented May 17, 2024

Tasks:

  • fixing page blinking when we swich dark/light mode.
  • fixing "Hydration error", which appears accidentally when page is loading for the first time

I've used next-themes and added "suppressHydrationWarning" to RootLayout.

task link

@Fermatka Fermatka self-assigned this May 17, 2024
@roszcz
Copy link
Member

roszcz commented May 17, 2024

  • fixing "Hydration error", which appears accidentally when page is loading for the first time

What's that about? :)

@Fermatka
Copy link
Collaborator Author

  • fixing "Hydration error", which appears accidentally when page is loading for the first time

What's that about? :)

It works, just forgot to mark that:) or maybe some errors appear? Here everything works:) Let me know:)

Copy link

@TheMankel TheMankel left a comment

Choose a reason for hiding this comment

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

There is a problem with our website in Firefox and Opera browsers (besides, I don't see any flickering, so it works great):

image

After a quick search, it looks like the problem is the space after system in the defaultTheme="system " (in providers.js file), but it should be checked

Copy link

@TheMankel TheMankel left a comment

Choose a reason for hiding this comment

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

Now there is no problem with Firefox and Opera 👌

image

@Fermatka Fermatka merged commit e9c21e1 into develop May 20, 2024
1 check passed
@Fermatka Fermatka deleted the PROLL-284/Fix_darTheme_blinking branch May 20, 2024 19:00
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.

3 participants