Skip to content

Highlight color palette only shows colors from the last source #36886

@oandregal

Description

@oandregal

Related #16014 #36841

Description

The color palette component used to highlight RichText content only shows colors from a single palette (default, theme, or custom). This has some weird side-effects such as when the user has added a custom color only that one will be shown.

Step-by-step reproduction instructions

  • Use TwentyTwentyTwo theme.
  • Go to the post editor and add a paragraph.
  • Select some text.
  • Open the "more block tools" in the block toolbar and select the "Highlight" option.

The color component only shows colors from the theme, when it should show defaults, theme, and user colors.

Captura de ecrã de 2021-11-25 19-36-57

If the user adds a single color to the custom palette (via the global styles sidebar in edit site), only that single color will be shown here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Package] Format library/packages/format-library[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions