Maybe deprecate @wordpress/editor PanelColor? #10367
Labels
Needs Technical Feedback
Needs testing from a developer perspective.
[Package] Editor
/packages/editor
[Type] Question
Questions about the design or development of the editor.
I'm working on some definitive documentation of color palettes in Gutenberg (revising/extending #7906), and in the process noticed that we have two versions of colour inspector panels inside the
@wordpress/editor
package right now:PanelColor
Screenshot:
PanelColorSettings
Screenshot:
Consolidate/deprecate?
Overall
PanelColorSettings
seems superior because of its support for multiple color values and for not having the clear button float issue. Since the two are so similar, does it make sense to deprecate and remove the less-powerful/visually-brokenPanelColor
and standardize onPanelColorSettings
?PanelColor
also wrapped a component of the same name inside@wordpress/components
which could also be deprecated/removed.If desired,
PanelColorSettings
could also be updated to hide the smaller color name label if only one color "type" is set, which would more closely reflect the current look ofPanelColor
.Curious to hear thoughts on this!
cc'ing @jorgefilipecosta since I know he's done a lot of work on color stuff!
The text was updated successfully, but these errors were encountered: