question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug Report] Explicitly defined theme color for a component reverts back on page navigation even though theme property changed

See original GitHub issue

Versions and Environment

Vuetify: 2.0.0-beta.8 Vue: 2.6.10 Browsers: Vivaldi 2.7.1609.4 OS: Windows 10

Steps to reproduce

  1. Run the Python script scripts/create_blog_metadata.py. The prerequisite python packages can be installed using the scripts/python-requirements.txt file.
  2. Run npm run nuxt-dev
  3. Open the website (localhost) in any browser.
  4. Click on the change theme icon in the top nav bar. Your theme will now change from the default dark to light.
  5. Click on a link (any link, say Legal in the top bav bar).
  6. The top nav bar and footer will now revert back to the dark theme colors.
  7. Go back to the home page. You will see that all components that have explicitly a color defined have reverted back to the default dark color.

Expected Behavior

Colors as defined under theme options stay put after navigation to a different link, even though the theme property has changed from dark to light and vice versa.

Actual Behavior

All components that have explicitly a color defined have reverted back to the default dark color.

Reproduction Link

https://github.com/manastalukdar/manastalukdar.github.io/tree/source/website

Other

  • Using Nuxt.
  • Using the @nuxtjs/vuetify, 1.0.0-beta.7 module.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
manastalukdarcommented, Aug 1, 2019

Just verified that this issue is fixed with PR https://github.com/vuetifyjs/vuetify/pull/8234 in latest vuetify without having to upgrade vue-meta to v2.

1reaction
kevinmarreccommented, Aug 1, 2019

@P4sca1 Yes, at least i’m sure it’s fixing it in Nuxt with universal mode (there’s still some issues regarding SPA with VueMeta, see the PR description)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changing theme colors does not work in 'spa' mode #69
[Bug Report] Explicitly defined theme color for a component reverts back on page navigation even though theme property changed ...
Read more >
Themes - React Navigation
This is a useful tool in order to build themes because we can define the theme at the root of the app, and...
Read more >
Use report themes in Power BI Desktop - Microsoft Learn
Learn how to use report themes to create a custom color palette and apply it to an entire report in Power BI Desktop....
Read more >
Customizing instance appearance
Several approaches are available for defining an instance theme. CSS Properties. Navigate to System Properties > CSS. The following properties ...
Read more >
Handle configuration changes - Android Developers
Some device configurations can change during runtime (such as screen orientation, keyboard availability, and when the user enables ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found