Commit caaab8a0f09 for woocommerce
commit caaab8a0f097eb2e890731f09046345c364f6e0d
Author: Mike Jolley <mike.jolley@me.com>
Date: Thu Oct 22 13:46:10 2026 +0100
Restore spacing above the checkout country field when it is not first (#70137)
* Fix missing gap above the checkout country field when it is not first
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Add changelog entry for checkout country field spacing fix
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/62621-checkout-country-field-spacing b/plugins/woocommerce/changelog/62621-checkout-country-field-spacing
new file mode 100644
index 00000000000..b92b2b4a067
--- /dev/null
+++ b/plugins/woocommerce/changelog/62621-checkout-country-field-spacing
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Restore spacing above the Checkout block country field when it is not the first address field.
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-fields-block/style.scss b/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-fields-block/style.scss
index 280120fd9e2..d90a71f9310 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-fields-block/style.scss
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/checkout/inner-blocks/checkout-fields-block/style.scss
@@ -10,9 +10,9 @@
margin-top: $gap-small;
}
- // No need for this margin in default country select, which sits at the top
- // of the form
- .wc-block-components-address-form__country {
+ // No need for this margin when the country select is the first field,
+ // which is its default position
+ .wc-block-components-address-form__country:first-child {
.wc-blocks-components-select {
margin-top: 0;
}