ColorPicker
: allow customisation of the auxiliary controls
#38065
Labels
[Feature] Component System
WordPress component system
[Package] Components
/packages/components
[Type] Enhancement
A suggestion for improvement.
With the recent updates, the
ColorPicker
component has a few auxiliary controls (collapsed by default) in its lower part.We should investigate the best way to allow consumers of this component more flexibility around the auxiliary controls.
The main aspect to consider is if we should allow consumers of this component to provide their own version of auxiliary controls, and whether the custom auxiliary controls should have access to the internal state of the color picker. In this scenario, we could have
ColorPicker
assume that custom auxiliary controls are provided through thechildren
prop.A simpler alternative would be to add a new boolean prop to
ColorPicker
for hiding/showing the auxiliary controls. In this scenario, consumers of theColorPicker
component would need to add any additional UI as a sibling of the component.(This issue is related to the problem flagged in #37599 by @andreiglingeanu )
The text was updated successfully, but these errors were encountered: