Skip to content

Style Variations: Add warning when custom styles will be lost #40561

@clubkert

Description

@clubkert

What problem does this address?

If a user creates a custom style and then switches to another style variation, the previous customizations are lost.

In the below video, I switch the background color to a gradient. However, if I then try out different style variations, my previous settings are lost with no warning.

Screen.Recording.2022-04-22.at.3.51.20.PM.mov

What is your proposed solution?

If I've made changes to my style settings, I'd expect a warning before switching to another variation letting me know that I'll lose my changes if I don't save the page first.

This might be related to saving style variations (#38333)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonNeeds DesignNeeds design efforts.[Feature] Theme Style VariationsRelated to style variations provided by block themes[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions