Commit 5de0760a12 for woocommerce
commit 5de0760a123b7cdeacc9cc08cfdcb52520da329e
Author: Ben Dwyer <ben@scruffian.com>
Date: Thu Apr 24 11:40:50 2025 +0100
Add to cart variations: Don't break word (#57274)
* Add to cart variations: Don't break word
* move CSS to the blocktheme file
* add changelog
diff --git a/plugins/woocommerce/changelog/fix-variations-word-break b/plugins/woocommerce/changelog/fix-variations-word-break
new file mode 100644
index 0000000000..7570414b3f
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-variations-word-break
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Keep variations labels on one line
diff --git a/plugins/woocommerce/client/legacy/css/woocommerce-blocktheme.scss b/plugins/woocommerce/client/legacy/css/woocommerce-blocktheme.scss
index d4e75fc570..609818c9df 100644
--- a/plugins/woocommerce/client/legacy/css/woocommerce-blocktheme.scss
+++ b/plugins/woocommerce/client/legacy/css/woocommerce-blocktheme.scss
@@ -120,6 +120,12 @@
margin-bottom: 0;
vertical-align: middle;
}
+
+ .variations {
+ td, th {
+ word-break: normal;
+ }
+ }
}
.related.products {
@@ -520,4 +526,4 @@ p.demo_store,
*/
.woocommerce .product-category mark.count {
background-color: transparent;
-}
\ No newline at end of file
+}