Allow overwrite of colors for PanelColor component #7806
Closed
Description
Is your feature request related to a problem? Please describe.
I have a project that needs two different color palettes for text and background colors. I got this working for my own block with
- recreating the PanelColor component (the result can be seen here https://gist.github.com/florianbrinkmann/e070d731ad11177e34969cd6fbb1a83e).
- setting the super set of colors via the
add_theme_support( 'editor-color-palette' )
call. - Defining the sub sets of colors for the text and background color via the
colors
param of theColorPalette
component.
But now I have a new problem with that: I want to modify the text color palette of paragraph blocks, so it only shows the wanted colors. I wanted to create a similar solution fopr that like for my own block via the editor.BlockEdit
filter, but that was not really successful.
Describe the solution you'd like
Being able to define colors
for the PanelColor
component, like it was done for ColorPalette
, would be really nice :)
Activity