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

Bug with switching modes "dark, light" on Safari in Dashboard UI-Pro template #1755

Closed
shehab267 opened this issue May 7, 2024 · 3 comments
Labels
bug Something isn't working pro

Comments

@shehab267
Copy link

shehab267 commented May 7, 2024

Environment

Version

v2.15.2

Reproduction

https://dashboard-template.nuxt.dev/

Description

Summary:

On the Dashboard UI-Pro template, there is a bug with switching between light and dark modes on Safari (both desktop and mobile). When switching modes, buttons, fields change with the selected mode, but the background doesn't change unless the page is refreshed.

Steps to Reproduce:

  1. Open the Dashboard UI-Pro template on Safari.
  2. Switch between light and dark modes using the provided toggle buttons.
  3. Note that the buttons change with the selected mode, but the background doesn't change until the page is refreshed.

Expected Behavior:

The background should change immediately when switching between light and dark modes without requiring a page refresh.

Actual Behavior:

The background does not change when switching between light and dark modes unless the page is refreshed.

Additional Information:

  • This issue only occurs on Safari; it works fine on other browsers.

Additional context

screenshot_2024-05-06_at_20 23 39
screenshot_2024-05-06_at_20 23 48

dark-beforeReload
dark-afterReload
light-beforeReload

Logs

No response

@shehab267 shehab267 added the bug Something isn't working label May 7, 2024
@moshetanzer
Copy link
Collaborator

Hi @shehab267 please try remove the HomeChart component from pages/index.vue and let me know if this issue still occurs?

Copy link
Member

Would you mind opening this issue in https://github.com/nuxt-ui-pro/dashboard? It's not related to @nuxt/ui.

Copy link
Member

Closing in favor of nuxt-ui-pro/dashboard#22.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pro
Projects
None yet
Development

No branches or pull requests

3 participants