Commit 0c80880336c for woocommerce
commit 0c80880336c44d46016cc392a2c423e50c9e1a33
Author: Raluca Stan <ralucastn@gmail.com>
Date: Thu Oct 22 16:43:55 2026 +0200
Style the password field in the order confirmation account form (#69895)
* Load component styles for the order confirmation Create Account block
The block renders the password field with the shared text input
component, whose styles live in wc-blocks-packages-style. The block
never enqueued that stylesheet, so the field showed unstyled.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Cast the parent style list before merging in CreateAccount
The parent docblock allows null, which PHPStan flags in array_merge().
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
diff --git a/plugins/woocommerce/changelog/fix-order-confirmation-create-account-password-styles b/plugins/woocommerce/changelog/fix-order-confirmation-create-account-password-styles
new file mode 100644
index 00000000000..4d33e51dd5d
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-order-confirmation-create-account-password-styles
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Style the password field in the order confirmation "Create an account" form.
diff --git a/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/CreateAccount.php b/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/CreateAccount.php
index 8d7254e92b6..974107263c6 100644
--- a/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/CreateAccount.php
+++ b/plugins/woocommerce/src/Blocks/BlockTypes/OrderConfirmation/CreateAccount.php
@@ -103,6 +103,15 @@ class CreateAccount extends AbstractOrderConfirmationBlock {
return $key ? $script[ $key ] : $script;
}
+ /**
+ * Get the frontend style handle for this block type.
+ *
+ * @return string[]
+ */
+ protected function get_block_type_style() {
+ return array_merge( (array) parent::get_block_type_style(), [ 'wc-blocks-packages-style' ] );
+ }
+
/**
* Returns if delayed account creation is enabled.
*