Skip to content

Users should be able to add a custom gradient when the default gradients are disabled #36640

@oandregal

Description

@oandregal

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:

Captura de ecrã de 2021-11-19 10-44-14

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

Captura de ecrã de 2021-11-19 10-44-23

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):

Captura de ecrã de 2021-11-19 10-48-23

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

Metadata

Metadata

Assignees

Labels

[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Status] In ProgressTracking issues with work in progress[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