Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create custom gradients when no gradients are set in theme.json #37114

Closed
ndiego opened this issue Dec 3, 2021 · 1 comment
Closed
Labels
[Feature] Colors Color management [Type] Bug An existing feature does not function as intended

Comments

@ndiego
Copy link
Member

ndiego commented Dec 3, 2021

Description

If you set coreGradients: false (soon to be defaultGradients: false), customGradients: true, but no specified gradients are set in theme.json, the UI for creating custom gradients is not displayed.

image

Step-by-step reproduction instructions

  1. Install the latest version of Twenty Twenty-Two and make sure you are using Gutenberg 12.0.1.

  2. In theme.json remove the gradients and set coreGradients: false and customGradients: true like the following.
    image

  3. Navigate the Block Editor and add a Cover block. Click on the Color panel, switch to Gradients and see the UI in the screenshot above.

Note: It actually does not appear the customGradients: true really does anything anymore. Toggling on and off seems to have no effect.

Screenshots, screen recording, code snippet

No response

Environment info

WordPress 5.9 Beta 1 and Gutenberg 12.0.1

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

@ndiego ndiego added [Type] Bug An existing feature does not function as intended [Feature] Colors Color management labels Dec 3, 2021
@ndiego
Copy link
Member Author

ndiego commented Dec 5, 2021

This issue is fixed with #36900

@ndiego ndiego closed this as completed Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Colors Color management [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

1 participant