Commit 7f7ca52a608 for woocommerce

commit 7f7ca52a608e22e5c0acb6e8c58fb5faddb61471
Author: Albert Juhé Lluveras <contact@albertjuhe.com>
Date:   Mon May 18 09:22:32 2026 +0200

    Fix Variation Selector: Attribute Name colors not being applied in the editor (#65010)

    * Add changelog

    * Fix Variation Selector: Attribute Name colors not being applied in the editor

    * Update outdated comment in wc-attribute-functions.php

diff --git a/plugins/woocommerce/changelog/fix-attribute-name-color b/plugins/woocommerce/changelog/fix-attribute-name-color
new file mode 100644
index 00000000000..0e889991caa
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-attribute-name-color
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Fix Variation Selector: Attribute Name colors not being applied in the editor
diff --git a/plugins/woocommerce/client/blocks/assets/js/blocks/add-to-cart-with-options/variation-selector/attribute-name/edit.tsx b/plugins/woocommerce/client/blocks/assets/js/blocks/add-to-cart-with-options/variation-selector/attribute-name/edit.tsx
index afbbf6b4d69..c5a7107c105 100644
--- a/plugins/woocommerce/client/blocks/assets/js/blocks/add-to-cart-with-options/variation-selector/attribute-name/edit.tsx
+++ b/plugins/woocommerce/client/blocks/assets/js/blocks/add-to-cart-with-options/variation-selector/attribute-name/edit.tsx
@@ -48,7 +48,7 @@ export default function AttributeNameEdit(
 			spacingProps.className
 		),
 		style: {
-			...colorProps.stye,
+			...colorProps.style,
 			...typographyProps.style,
 			...spacingProps.style,
 		},
diff --git a/plugins/woocommerce/includes/wc-attribute-functions.php b/plugins/woocommerce/includes/wc-attribute-functions.php
index bcbbae57f05..c91f9ca9fa6 100644
--- a/plugins/woocommerce/includes/wc-attribute-functions.php
+++ b/plugins/woocommerce/includes/wc-attribute-functions.php
@@ -481,7 +481,8 @@ function wc_get_attribute( $id ) {
  *     @type string $name         Attribute name. Always required.
  *     @type string $slug         Attribute alphanumeric identifier.
  *     @type string $type         Type of attribute.
- *                                Core by default accepts: 'select' and 'text'.
+ *                                Core by default accepts: 'select' and
+ *                                'wc-visual' (which is experimental).
  *                                Default to 'select'.
  *     @type string $order_by     Sort order.
  *                                Accepts: 'menu_order', 'name', 'name_num' and 'id'.