Skip to content

Highlight: Color Variables are detached from presets when changing styles #53136

@hanneslsm

Description

@hanneslsm

Description

When changing the theme styles the color of the highlight doesn't change because it gets detached from the preset and is displayed as a custom color.

Step-by-step reproduction instructions

  1. Highlight a text, chose a preset color
  2. Change theme styles
  3. See that the color preset got overwritten

Screenshots, screen recording, code snippet

Screen.Recording.2023-07-29.at.13.56.37.mp4

Environment info

Please confirm that you have searched existing issues in the repo.

No

Please confirm that you have tested with all plugins deactivated except Gutenberg.

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Package] Rich text/packages/rich-text[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions