Commit eb220af6307 for woocommerce

commit eb220af6307b871f49c2054d5b680f949c4022ad
Author: Albert Juhé Lluveras <contact@albertjuhe.com>
Date:   Thu Dec 3 10:53:24 2026 +0100

    Use button styles from the theme in Product Categories List button and fix Purple select text alignment (#71451)

    * Use button styles from the theme in Product Categories List button

    * Add changelog file

    * Purple: Fix selects text vertical alignment

    * Add changelog file

    * Fix Catalog Sorting not correctly aligned with custom select styles

    * Remove unused styles

    * Remove TT3 Catalog Sorting hardcoded styles

    * Add back padding styles to the Product Categories List button

diff --git a/plugins/woocommerce/changelog/fix-product-categories-default-button-styles b/plugins/woocommerce/changelog/fix-product-categories-default-button-styles
new file mode 100644
index 00000000000..46f9b12bf65
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-product-categories-default-button-styles
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Use button styles from the theme in Product Categories List button
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/catalog-sorting/style.scss b/plugins/woocommerce/client/blocks/assets/js/blocks/catalog-sorting/style.scss
index db9741f0b2b..01a9b5886f7 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/catalog-sorting/style.scss
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/catalog-sorting/style.scss
@@ -13,6 +13,7 @@
 		display: flex;
 		gap: 0.25em;
 		margin: auto;
+		align-items: center;
 	}

 	&.has-text-align-center .woocommerce-ordering {
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/product-categories/style.scss b/plugins/woocommerce/client/blocks/assets/js/blocks/product-categories/style.scss
index a6497dc43e2..f237f7c3d4b 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/product-categories/style.scss
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/product-categories/style.scss
@@ -65,11 +65,12 @@

 .wc-block-product-categories__button {
 	display: flex;
-	align-items: center;
-	margin: 0;
-	padding: 0 0.5em;
-	position: relative;
-	overflow: hidden;
+
+	// Double-class for specificity, so it wins default button styles.
+	&.wc-block-product-categories__button {
+		align-items: center;
+		padding: 0 0.5em;
+	}

 	svg {
 		fill: currentColor;
@@ -78,16 +79,4 @@
 			transform: rotate(180deg);
 		}
 	}
-	&:active {
-		color: currentColor;
-	}
-	&:disabled,
-	&[aria-disabled="true"] {
-		cursor: default;
-		opacity: 0.3;
-	}
-	&[aria-disabled="true"]:focus,
-	&:disabled:focus {
-		box-shadow: none;
-	}
 }
diff --git a/plugins/woocommerce/client/legacy/css/twenty-twenty-three.scss b/plugins/woocommerce/client/legacy/css/twenty-twenty-three.scss
index fe95f7ddcbf..7e7aab8d4bd 100644
--- a/plugins/woocommerce/client/legacy/css/twenty-twenty-three.scss
+++ b/plugins/woocommerce/client/legacy/css/twenty-twenty-three.scss
@@ -147,11 +147,6 @@
 		margin-right: 0.25rem;
 	}

-	// The 'order by' dropdown on the Shop page is rather tiny unless the font size is increased.
-	select.orderby {
-		font-size: var(--wp--preset--font-size--medium);
-	}
-
 	// Products.
 	ul.products {

diff --git a/plugins/woocommerce/src/Blocks/BlockTypes/ProductCategories.php b/plugins/woocommerce/src/Blocks/BlockTypes/ProductCategories.php
index c0fe78a3ce6..0b25607682e 100644
--- a/plugins/woocommerce/src/Blocks/BlockTypes/ProductCategories.php
+++ b/plugins/woocommerce/src/Blocks/BlockTypes/ProductCategories.php
@@ -162,7 +162,7 @@ class ProductCategories extends AbstractDynamicBlock {
 		if ( ! $attributes['hasEmpty'] ) {
 			$categories = array_filter(
 				$categories,
-				function( $category ) {
+				function ( $category ) {
 					return 0 !== $category->count;
 				}
 			);
@@ -255,7 +255,7 @@ class ProductCategories extends AbstractDynamicBlock {
 			</div>
 			<button
 				type="button"
-				class="wc-block-product-categories__button"
+				class="wc-block-product-categories__button wp-element-button"
 				aria-label="' . esc_html__( 'Go to category', 'woocommerce' ) . '"
 				onclick="const url = document.getElementById( \'' . esc_attr( $uid ) . '-select\' ).value; if ( \'false\' !== url ) document.location.href = url;"
 			>
diff --git a/themes/purple/changelog/fix-product-categories-default-button-styles b/themes/purple/changelog/fix-product-categories-default-button-styles
new file mode 100644
index 00000000000..382714b4ab8
--- /dev/null
+++ b/themes/purple/changelog/fix-product-categories-default-button-styles
@@ -0,0 +1,5 @@
+Significance: patch
+Type: fix
+Comment: Fix selects text vertical alignment
+
+
diff --git a/themes/purple/style.css b/themes/purple/style.css
index 5d1b37aec5f..a96cde9ef1a 100644
--- a/themes/purple/style.css
+++ b/themes/purple/style.css
@@ -37,6 +37,7 @@ body {
 		appearance: base-select;
 		align-items: center;
 		gap: var(--wp--preset--spacing--10);
+		line-height: 1;
 	}

 	select:not([multiple], [size])::picker-icon {
@@ -45,7 +46,6 @@ body {
 		block-size: 0.42rem;
 		content: "";
 		inline-size: 0.75rem;
-		margin-block-start: -1px;
 		mask-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%275.25 8.25 13.5 7.5%27 fill=%27none%27%3E%3Cpolyline points=%276 9 12 15 18 9%27 stroke=%27%23000%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
 		mask-repeat: no-repeat;
 		mask-size: contain;