You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After changing the theme Styles via the Editor, should clearing the customisations via Themer be restricted to only changes made in Themer or also cover changes made to the theme via the Editor panel?
For example, it's not currently possible to edit styles such as the colours in the palette via Themer, so clearing customisations of that type via Themer could be confusing.
Great point, thanks for raising this. I hadn't considered this scenario up until now.
I agree, it's confusing to clear styles that aren't currently part of what is editable within themer. Hopefully this will become less of an issue as we move forward and introduce more capabilities. But in the mean time, perhaps we should be limiting what is cleared when you hit that button.
In simple terms, this would be everything under the top-level styles attribute in theme.json. settings is where the colour palette, etc, is stored, which we don't yet support.
@g-elwell Been discussing this with @thatisrich i've looked into this and we could seperate it so settings are never cleared unless they clear it in the styles editor.
What i've noticed though is that there isn't a way currently to tell if the styles have been edited in the styles editor or themer. When you edit it via the styles it changes it in themer and if you edit it in themer it changes it in the styles editor as it all goes in and uses the same currentGlobalStylesId.
Rich thought it would be a good idea to have a confimation message which says are you sure you want to reset this it will also clear changes made in the styles editor?
Happy to implement these changes as I've already sorted the settings being cleared locally so I could add the confirmation message to the same PR.
Behavior in question
After changing the theme Styles via the Editor, should clearing the customisations via Themer be restricted to only changes made in Themer or also cover changes made to the theme via the Editor panel?
For example, it's not currently possible to edit styles such as the colours in the palette via Themer, so clearing customisations of that type via Themer could be confusing.
This may be somewhat related to issue #99.
Some possible outcomes
Step-by-step reproduction instructions
Styles
icon at the top right of the screenAppearance > Styles Editor
clear all customisations
using theTools
dropdown at the top right of the screenEditor
and notice theStyles
changes are resetScreenshots, screen recordings, code snippets
Demo showing customisations being made via the Styles panel in the Editor, then cleared via Themer
The text was updated successfully, but these errors were encountered: