Commit c4536220ce2 for woocommerce
commit c4536220ce2bf399c4f5b3f357e7d74c93dd8c70
Author: Bhavik Tank <53536925+bhavz-10@users.noreply.github.com>
Date: Tue Nov 24 08:37:44 2026 +0200
Replace deprecated Tip in the All Products editor (#71253)
* Replace deprecated Tip in the All Products editor
* Add changelog entry for All Products layout notice
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/products/all-products/edit.js b/plugins/woocommerce/client/blocks/assets/js/blocks/products/all-products/edit.js
index 8ac570967ab..f97c5c15e3e 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/products/all-products/edit.js
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/products/all-products/edit.js
@@ -11,9 +11,9 @@ import { createBlock } from '@wordpress/blocks';
import {
Button,
Disabled,
+ Notice,
PanelBody,
Placeholder,
- Tip,
ToolbarGroup,
withSpokenMessages,
} from '@wordpress/components';
@@ -173,12 +173,17 @@ const Edit = ( {
'woocommerce'
) }
<div className="wc-block-all-products-grid-item-template">
- <Tip>
+ <Notice
+ className="wc-block-all-products__layout-notice"
+ status="info"
+ isDismissible={ false }
+ spokenMessage=""
+ >
{ __(
'Edit the blocks inside the example below to change the content displayed for all products within the product grid.',
'woocommerce'
) }
- </Tip>
+ </Notice>
<InnerBlockLayoutContextProvider
parentName="woocommerce/all-products"
parentClassName="wc-block-grid"
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/products/all-products/editor.scss b/plugins/woocommerce/client/blocks/assets/js/blocks/products/all-products/editor.scss
index 8f2fa80eb03..b109560b958 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/products/all-products/editor.scss
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/products/all-products/editor.scss
@@ -43,14 +43,11 @@
overflow: hidden;
text-align: center;
- .components-tip {
+ .wc-block-all-products__layout-notice {
max-width: 450px;
- margin: 20px auto;
- text-align: left;
-
- p {
- margin: 1em 0;
- }
+ margin-block: 20px;
+ margin-inline: auto;
+ text-align: start;
}
.wc-block-all-products__actions {
diff --git a/plugins/woocommerce/client/blocks/changelog/70850-migrate-tip-to-notice b/plugins/woocommerce/client/blocks/changelog/70850-migrate-tip-to-notice
new file mode 100644
index 00000000000..92195224bff
--- /dev/null
+++ b/plugins/woocommerce/client/blocks/changelog/70850-migrate-tip-to-notice
@@ -0,0 +1,4 @@
+Significance: patch
+Type: tweak
+
+Update the layout editing hint in the All Products block to use the WordPress notice design.