When editing and saving a post, this can temporarily remove tailwind styles that were applied to the posts template. Resaving the template re-adds the styles.
Step-by-step reproduction instructions:
Please write the steps needed to reproduce the bug.
Create a Single Item: Post template and add appropriate visibility conditions so it shows for all single posts
Add some blocks to it styled with Tailwind (such as font colours and background colours)
Create a post and add some content to it
Publish the post
Note that on the frontend the tailwind styles have disappeared
Edit and resave the template
Note that on the frontend the tailwind styles have reappeared
I suppose this happens when you have multiple tabs open or are working with a team.
As Cwicly only generates necessary Tailwind classes, an instance of Cwicly will not be aware of the new necessary classes that might have been added in another instance (a refresh would fix this).
I’ll leave this a confirmed, but it will require a more advanced fix.
A quick Tailwind purge should fix this if it happens.
Hi @Louis, I have sent access details to the Cwicly Support email. We were not able to reproduce it on another site, but it is a very prominent issue on the site we are experiencing it with.
To reproduce, first simply purge the Tailwind styles and confirm they are being added, then edit any post and note that they are removed until you purge again.
Yes @Louis, definitely the same issue parameters as before.
It is not clear what caused it to re-occur, we were editing a large amount of posts and at some point during that process we noticed it had happened again.
Purging the Tailwind cache is a temporary respite.
If we uncover any more useful information on the trigger I will let you know ASAP.
@Louis The issue has recurred specifically for the header and footer and purging the tailwind cache no longer resolves it.
I am sending access details so you can see exactly what is going on.
I’m wondering if it could have something to do with switching between Tailwind and non-Tailwind mode and adding global classes for blocks that also have Tailwind classes. That is pure conjecture at the moment.
Thank you for providing access again, @StrangeTech!
As mentioned by email, this issue is related to Shell styles being removed on the frontend following a regeneration.
A save of the page restores these styles as expected.
Rest assured, we’ll have a fix as soon as possible.
Thanks for the report once again and confirming it now works on your end.
If you do run into any similar trouble, please don’t hesitate to reply to this thread.
Sorry to hear you’re having issues with this again.
Purging the cache did not solve the issue?
If it does happen again, access would be helpful so that I can debug what’s happening exactly, which I believe would have to do with existing Tailwind classes not being loaded on the post editor.