gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Custom Colors broken in 10.7.1

Open melchoyce opened this issue 5 years ago • 5 comments

Description

On sites running WordPress 5.7.2 and Gutenberg 10.7.1, I'm unable to select custom colors in the editor.

Step-by-step reproduction instructions

  1. Make sure you're running 5.7.2 and 10.7.1, both the latest releases.
  2. Open a new post or page.
  3. Add an element that has a color control.
  4. Open the color panel in the sidebar and see that there is no option for adding a custom color.

Expected behaviour

I expect there to be an option to add a custom color.

Actual behaviour

There is no option.

Screenshots or screen recording (optional)

With 10.7.1 activated:

image

With the Gutenberg plugin deactivated:

image

WordPress information

  • WordPress version: 5.7.2
  • Gutenberg version: 10.7.1
  • Are all plugins except Gutenberg deactivated? Yes
  • Are you using a default theme (e.g. Twenty Twenty-One)? Yes, also tested on several other themes.

Device information

  • Device: Desktop
  • Operating system: OSX 11.3.1
  • Browser: Chrome 90.0.4430.212

melchoyce avatar Jun 02 '21 19:06 melchoyce

Just chiming in to say that I have noticed the same thing.

lukecarbis avatar Jun 02 '21 21:06 lukecarbis

I noticed that if you specify disableCustomColors={ false } (which should be the default), the Custom Color option returns.

lukecarbis avatar Jun 02 '21 22:06 lukecarbis

I noticed this too, and at first wasn't sure if this is a feature or a bug.

Custom colors can still be added/edited in the Site Editor Global Styles, and then the new custom color is available for selection in the post/page/block editor.

I'm now thinking it's a bug as we still need to be able to add custom colors when the global styles is not accessible.

Sandstromer avatar Jun 03 '21 09:06 Sandstromer

cc @nosolosw @jorgefilipecosta

youknowriad avatar Jun 03 '21 12:06 youknowriad

This is fixed in 10.8 as per https://github.com/WordPress/gutenberg/pull/32200

oandregal avatar Jun 03 '21 15:06 oandregal