Description
The gradients panel doesn't allow user to add a custom gradient when the default gradients are disabled. The panel is empty but not hidden.
Step-by-step reproduction instructions
How to test
- Use a theme that does not provide any solids or gradients.
- Set
defaultPalette and defaultGradients to false.
This is what I see for solids:

This is what I see for gradients (note that it's empty):

If I then disable the custom colors (settings.color.custom to false), this is what I see (the color panel is shown but it does not contain anything):

Screenshots, screen recording, code snippet
No response
Environment info
No response
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
Description
The gradients panel doesn't allow user to add a custom gradient when the default gradients are disabled. The panel is empty but not hidden.
Step-by-step reproduction instructions
How to test
defaultPaletteanddefaultGradientsto false.This is what I see for solids:
This is what I see for gradients (note that it's empty):
If I then disable the custom colors (
settings.color.customto false), this is what I see (the color panel is shown but it does not contain anything):Screenshots, screen recording, code snippet
No response
Environment info
No response
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