Commit 4fbcf7e128d for woocommerce
commit 4fbcf7e128de5c1e18949d8441b95c971fc283d0
Author: Ann <annchichi@users.noreply.github.com>
Date: Tue Apr 28 19:23:13 2026 +0800
Align order edit page address Select2 with WordPress 7.0 input height (#64389)
* Align order edit page address Select2 with WordPress 7.0 input height
* Add changelog entry for order edit address Select2 alignment
* Increase selector specificity to outrank legacy order edit address rule
---------
Co-authored-by: Ayush Pahwa <ayush.pahwa@automattic.com>
diff --git a/plugins/woocommerce/changelog/tweak-order-edit-address-select2-wp70 b/plugins/woocommerce/changelog/tweak-order-edit-address-select2-wp70
new file mode 100644
index 00000000000..e01820f6bc2
--- /dev/null
+++ b/plugins/woocommerce/changelog/tweak-order-edit-address-select2-wp70
@@ -0,0 +1,4 @@
+Significance: patch
+Type: tweak
+
+Align order edit page address Select2 dropdowns (Country/Region, State/County) with WordPress 7.0 input height and padding so they match sibling text inputs.
diff --git a/plugins/woocommerce/client/legacy/css/admin.scss b/plugins/woocommerce/client/legacy/css/admin.scss
index d462763c0b9..79c13d6056c 100644
--- a/plugins/woocommerce/client/legacy/css/admin.scss
+++ b/plugins/woocommerce/client/legacy/css/admin.scss
@@ -8384,6 +8384,23 @@ table.bar_chart {
}
}
+ // Order edit address Select2: escape legacy 32px override at admin.scss:2019
+ // so Country/State selects match the 40px WP 7.0 input height of their sibling
+ // fields. Selector mirrors the legacy structure exactly (#order_data
+ // .order_data_column div.edit_address ...) to outrank it on specificity (1,5,1).
+ #order_data .order_data_column div.edit_address .select2-container .select2-selection--single {
+ height: 40px;
+
+ .select2-selection__rendered {
+ line-height: 38px;
+ padding: 0 12px; // Match WP 7.0 native input padding.
+ }
+
+ .select2-selection__arrow {
+ height: 38px;
+ }
+ }
+
// Table action icon buttons: prevent WP 7.0 min-height from stretching them.
.widefat {
.column-wc_actions {