From f7623ac32478f07644fcfdd60ab322a8a8fc2313 Mon Sep 17 00:00:00 2001 From: Cullen Whitmore Date: Mon, 8 Nov 2021 11:30:18 -0600 Subject: [PATCH 1/4] Change attribute label column from `td` to `th` --- .../templates/single-product/add-to-cart/variable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce/templates/single-product/add-to-cart/variable.php b/plugins/woocommerce/templates/single-product/add-to-cart/variable.php index 64a79dbeebc..93dc7302c1e 100644 --- a/plugins/woocommerce/templates/single-product/add-to-cart/variable.php +++ b/plugins/woocommerce/templates/single-product/add-to-cart/variable.php @@ -35,7 +35,7 @@ do_action( 'woocommerce_before_add_to_cart_form' ); ?> $options ) : ?> - + Date: Mon, 8 Nov 2021 12:04:58 -0600 Subject: [PATCH 2/4] Add text-alignment to `th` elements in the variations table --- plugins/woocommerce/assets/css/woocommerce.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/woocommerce/assets/css/woocommerce.scss b/plugins/woocommerce/assets/css/woocommerce.scss index c0c9409d7c6..a59255a8c67 100644 --- a/plugins/woocommerce/assets/css/woocommerce.scss +++ b/plugins/woocommerce/assets/css/woocommerce.scss @@ -453,8 +453,9 @@ p.demo_store, td, th { border: 0; - vertical-align: top; line-height: 2em; + text-align: left; + vertical-align: top; } label { From 057019c6149640e2c06da7a21b4b641acce5ccfe Mon Sep 17 00:00:00 2001 From: Cullen Whitmore Date: Mon, 8 Nov 2021 12:28:56 -0600 Subject: [PATCH 3/4] Move text alignment to the label to improve CSS specificity --- plugins/woocommerce/assets/css/woocommerce.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce/assets/css/woocommerce.scss b/plugins/woocommerce/assets/css/woocommerce.scss index a59255a8c67..da71b3321ed 100644 --- a/plugins/woocommerce/assets/css/woocommerce.scss +++ b/plugins/woocommerce/assets/css/woocommerce.scss @@ -454,12 +454,12 @@ p.demo_store, th { border: 0; line-height: 2em; - text-align: left; vertical-align: top; } label { font-weight: 700; + text-align: left; } select { From be19efe729644ecc24d5a2851bad2968aae20ca4 Mon Sep 17 00:00:00 2001 From: Cullen Whitmore Date: Wed, 8 Dec 2021 10:13:11 -0600 Subject: [PATCH 4/4] Bump the version string in the template header to 6.1.0 --- .../templates/single-product/add-to-cart/variable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce/templates/single-product/add-to-cart/variable.php b/plugins/woocommerce/templates/single-product/add-to-cart/variable.php index 93dc7302c1e..53dfbfaa867 100644 --- a/plugins/woocommerce/templates/single-product/add-to-cart/variable.php +++ b/plugins/woocommerce/templates/single-product/add-to-cart/variable.php @@ -12,7 +12,7 @@ * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce\Templates - * @version 3.5.5 + * @version 6.1.0 */ defined( 'ABSPATH' ) || exit;