Change location of Feedback prompt in Products block. (https://github.com/woocommerce/woocommerce-blocks/pull/8382)
With WordPress 6.2, the inspector controls are going to be tabbed into a “Styles” and “Setting” section (where applicable). Previously, in order to display our Feedback Prompt at the bottom of the controls, we had hooked it into the “Colors” section as a temporary/hacky solution to the problem. Now that the styles sections are all moved, the problem doesn't really exist anymore, and we can just place it at the bottom of the controls.
This commit is contained in:
parent
73788d4378
commit
a7c730fbd0
|
@ -208,13 +208,6 @@ const ProductQueryControls = ( props: ProductQueryBlock ) => {
|
||||||
) }
|
) }
|
||||||
</ToolsPanel>
|
</ToolsPanel>
|
||||||
</InspectorControls>
|
</InspectorControls>
|
||||||
{
|
|
||||||
// Hacky temporary solution to display the feedback prompt
|
|
||||||
// at the bottom of the inspector controls
|
|
||||||
}
|
|
||||||
<InspectorControls __experimentalGroup="color">
|
|
||||||
<ProductQueryFeedbackPrompt />
|
|
||||||
</InspectorControls>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -226,6 +219,9 @@ export const withProductQueryControls =
|
||||||
<>
|
<>
|
||||||
<ProductQueryControls { ...props } />
|
<ProductQueryControls { ...props } />
|
||||||
<BlockEdit { ...props } />
|
<BlockEdit { ...props } />
|
||||||
|
<InspectorControls>
|
||||||
|
<ProductQueryFeedbackPrompt />
|
||||||
|
</InspectorControls>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<BlockEdit { ...props } />
|
<BlockEdit { ...props } />
|
||||||
|
|
Loading…
Reference in New Issue