Skip to content

Custom colors are lost when styles are changed #48407

@mgawe

Description

@mgawe

Description

Hi, I noticed a problem with custom color palette in the site editor (as the title).

Step-by-step reproduction instructions

  1. Go to Appearance > Editor
  2. Open Styles > Colors > Palette > Custom (Add color) > Click "Done" & Save
  3. Back to Browse style
  4. Change to another style and Save
  5. Check if the custom color has been saved in the previous style.

Screenshots, screen recording, code snippet

screen-capture.1.webm

Environment info

  • WordPress 6.1.1
  • Gutenberg 15.2.0
  • Theme Twenty Twenty-Three

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Feature] ColorsColor management[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