-
Notifications
You must be signed in to change notification settings - Fork 64
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
Customizer custom colors preview overriden by style.css #111
Comments
This might be related to #52 -- the issue hangs around even after you've switched back to the default style pack, as long as it's been changed at some point in the past -- it's due to my clunky code for the Customizer. @claudiulodro do you remember if you switched the style pack at any point on this test site? |
Not sure. I should be getting my new computer today, so I'll give it a test on a clean slate and see. |
Thanks! (And yay new computer!! 🎉 ) |
Just tested on the cleanest of new sites, and the issue still happens. It's not because I had a style pack and then removed it. |
Thanks for double-checking! Dang, this could be a bigger issue than I thought. |
Did a little more digging into this, and it seems to def. be related to the style packs. If I remove The underlying issue to me looks like
The second enqueue (the one by style pack) overrides the customizer styles, since the styles all have the same specificity but the style pack loads Closing this issue since it seems to be the same as #52. Hope this info helps! :) |
Yes -- thanks @claudiulodro!! |
Describe the bug
In the Customizer, when I have a custom color selected, I get a flash of the color when the page is first loaded for .5 seconds, and then it all gets replaced with the default Newspack color. Selecting a custom color doesn't show the color in the Customizer, and it's always mighty blue all the time. On the site frontend, the custom color works great.
In the inspector, if I examine e.g. a Search button I see the default color is active:
style.css
At a lower priority (striked through in the inspector), my custom color is inactive:
http://{site}/?customize_changeset_uuid={uuid}&customize_theme=newspack-theme&customize_messenger_channel=preview-0
Potentially related to #52? (The issue happens without a style pack active in my testing, though)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expected the custom color preview to preview normally.
The text was updated successfully, but these errors were encountered: