-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ColorPaletteControl is not exported #13018
Comments
I can't find a way to use the color palette control too :( |
I'd love to see this also 👍 I want to only use the color palette in a custom |
@jorgefilipecosta - what was the reason that |
Any progress on this? ColorPaletteControl is a much more sophistocated component than ColorPalette, it would be nice to be able to use it. A workaround is to reimplement the code behind it.
This works -- except <BaseControl.VisualLabel> kept crashing with a React 130 error. |
@galloppinggryphon You can use this one I'm using right now: https://github.com/gambitph/Stackable/blob/feat-three-tabs/src/components/color-palette-control/index.js |
Hi, ColorPaletteControl is being exported under wp.blockEditor.ColorPaletteControl. I'm closing this issue for now. If the proposed component does not fit a specific need, please comment, and we will look further into the issue. |
I'm not sure whether I'm missing something, but I can't seem to use this Component: https://github.com/WordPress/gutenberg/blob/f5daf49820717c14e3d81edc460f0f0b6f1b1878/packages/editor/src/components/color-palette/control.js
There's a closed issue #9216 that mentions to use it, but I can't seem to find a way to use it.
I see that there's another component under
editor
here: https://github.com/WordPress/gutenberg/blob/f5daf49820717c14e3d81edc460f0f0b6f1b1878/packages/editor/src/components/color-palette/index.jsBut that looks to be a different one.
The one that really fits to be an actual component is the one at
./control.js
above, but it isn't exported anywhere.There currently isn't a way to use a ColorPallete-like Control is to..
PanelColorSettings
orColorPalette
with aBaseControl
(which is exactly what./control.js
above is doing)Perhaps what's missing is a
ColorPaletteControl
under@wordpress/components
Need some feedback about this. If this is correct, I'd be happy to submit a PR with the adjustments necessary to add this.
The text was updated successfully, but these errors were encountered: