Theme Style Variations: Changing style variations, or choosing a new color preset, clears user created custom colors #62232
Labels
[Feature] Theme Style Variations
Related to style variations provided by block themes
Needs Dev
Ready for, and needs developer efforts
[Type] Bug
An existing feature does not function as intended
Description
If you have created custom colors in the Styles panel, as soon as you select a different style variation, or select a color preset, the custom colors are removed. This behavior is the same in 6.5 and with Gutenberg. See the videos below for comparison.
It is not clear to me why user created custom colors should be tied to the style variation that has been chosen. While there may be a technical reason, this is not intuitive. Furthermore, since Gutenberg (and soon 6.6) adds color presets to the Style panel, it is very easy to click on a preset and then accidentally wipe all your custom colors. If a user doesn't know that they can click undo, there is no way to get their colors back outside of refreshing the Site Editor without saving.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
WordPress 6.5
custom-colors-6-5.mp4
WordPress 6.5 + Gutenberg
custom-colors-6-5-gutenberg.mp4
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: