{
);
};
-export default function CustomGradientPicker( { value, onChange } ) {
+export default function CustomGradientPicker( {
+ value,
+ onChange,
+ __experimentalIsRenderedInSidebar,
+} ) {
const gradientAST = getGradientAstWithDefault( value );
// On radial gradients the bar should display a linear gradient.
// On radial gradients the bar represents a slice of the gradient from the center until the outside.
@@ -121,6 +125,9 @@ export default function CustomGradientPicker( { value, onChange } ) {
return (
onChange( undefined ), [
onChange,
@@ -136,6 +137,9 @@ export default function GradientPicker( {
content={
! disableCustomGradients && (
diff --git a/packages/components/src/palette-edit/index.js b/packages/components/src/palette-edit/index.js
index ddd8903b7a6b90..b4de9800c9ecec 100644
--- a/packages/components/src/palette-edit/index.js
+++ b/packages/components/src/palette-edit/index.js
@@ -127,6 +127,7 @@ function Option( {
) }
{ isGradient && (
onChange( {