Commit 9dbe513b0a3 for woocommerce
commit 9dbe513b0a320b0da4bf7637d2feda9161ff8d3c
Author: Ahmed Ismail <105542236+ahmedevsaad@users.noreply.github.com>
Date: Thu Nov 12 09:15:02 2026 +0200
Stop adding a theme-specific checkmark style to the Create Account list (#69298)
* Style the Create Account checkmark list in the block itself
* Drop the checkmark list class from the Create Account default markup
The is-style-checkmark-list style is registered by some themes only, so
leave the list style to the theme instead of shipping a WooCommerce copy.
This reverts the block-level styling added earlier on this branch.
* Allow the ExternalLink import in the Create Account block editor
Link from @wordpress/ui isn't available to the blocks package yet, so
keep ExternalLink and skip the recommended-components lint rule for it,
as the Checkout terms block already does.
Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a1bd66-1327-71cc-9397-25eb94edfbd4
---------
Co-authored-by: Tung Du <dinhtungdu@gmail.com>
Co-authored-by: Amp <amp@ampcode.com>
diff --git a/plugins/woocommerce/changelog/69102-fix-create-account-checkmark-list b/plugins/woocommerce/changelog/69102-fix-create-account-checkmark-list
new file mode 100644
index 00000000000..fdb6cebbe57
--- /dev/null
+++ b/plugins/woocommerce/changelog/69102-fix-create-account-checkmark-list
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Stop adding the theme-specific checkmark list style to the order confirmation Create Account list, so it shows as a plain list in every theme.
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/order-confirmation/create-account/edit.tsx b/plugins/woocommerce/client/blocks/assets/js/blocks/order-confirmation/create-account/edit.tsx
index f376367bf47..89206b9b9a8 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/order-confirmation/create-account/edit.tsx
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/order-confirmation/create-account/edit.tsx
@@ -15,6 +15,8 @@ import {
Disabled,
PanelBody,
ToggleControl,
+ // `Link` from `@wordpress/ui` isn't available to this package yet.
+ // eslint-disable-next-line @wordpress/use-recommended-components
ExternalLink,
// eslint-disable-next-line @wordpress/no-unsafe-wp-apis
__experimentalToolsPanel as ToolsPanel,
@@ -42,9 +44,7 @@ const defaultTemplate = [
],
[
'core/list',
- {
- className: 'is-style-checkmark-list',
- },
+ {},
[
[
'core/list-item',
diff --git a/plugins/woocommerce/client/blocks/eslint-suppressions.json b/plugins/woocommerce/client/blocks/eslint-suppressions.json
index 978514f4da5..f1293def646 100644
--- a/plugins/woocommerce/client/blocks/eslint-suppressions.json
+++ b/plugins/woocommerce/client/blocks/eslint-suppressions.json
@@ -49,11 +49,6 @@
"count": 1
}
},
- "assets/js/blocks/order-confirmation/create-account/edit.tsx": {
- "@wordpress/use-recommended-components": {
- "count": 1
- }
- },
"assets/js/blocks/product-collection/edit/collection-chooser.tsx": {
"@wordpress/use-recommended-components": {
"count": 1
diff --git a/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/CreateAccount.php b/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/CreateAccount.php
index 409c72d3aed..8dafb4cc3b1 100644
--- a/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/CreateAccount.php
+++ b/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/CreateAccount.php
@@ -66,8 +66,8 @@ class CreateAccount extends AbstractOrderConfirmationBlock {
<!-- wp:heading {"level":3} -->
<h3 class="wp-block-heading">' . esc_html( $site_title_heading ) . '</h3>
<!-- /wp:heading -->
- <!-- wp:list {"className":"is-style-checkmark-list"} -->
- <ul class="wp-block-list is-style-checkmark-list"><!-- wp:list-item -->
+ <!-- wp:list -->
+ <ul class="wp-block-list"><!-- wp:list-item -->
<li>' . esc_html__( 'Faster future purchases', 'woocommerce' ) . '</li>
<!-- /wp:list-item -->
<!-- wp:list-item -->