Commit 5ccbe9e3ffb for woocommerce
commit 5ccbe9e3ffbe4d67d85262f2faa2d4e68ada69a0
Author: Mike Jolley <mike.jolley@me.com>
Date: Tue Jun 30 11:08:45 2026 +0100
Fix oversized headings in cart/checkout product short descriptions (#66025)
Normalize heading formatting in cart/checkout product short descriptions
Headings (h1-h6) in a product short description rendered oversized in
Cart and Checkout because only > p elements were size-locked. Normalize
all heading levels to match the product summary block's approach.
diff --git a/plugins/woocommerce/changelog/61018-cart-short-desc-format b/plugins/woocommerce/changelog/61018-cart-short-desc-format
new file mode 100644
index 00000000000..7bb3f15d31d
--- /dev/null
+++ b/plugins/woocommerce/changelog/61018-cart-short-desc-format
@@ -0,0 +1,3 @@
+Significance: patch
+Type: fix
+Comment: Normalize heading formatting in Cart and Checkout product short descriptions so an H1-styled short description no longer renders oversized.
diff --git a/plugins/woocommerce/client/blocks/assets/js/base/components/cart-checkout/product-metadata/style.scss b/plugins/woocommerce/client/blocks/assets/js/base/components/cart-checkout/product-metadata/style.scss
index 706409c731d..90388063221 100644
--- a/plugins/woocommerce/client/blocks/assets/js/base/components/cart-checkout/product-metadata/style.scss
+++ b/plugins/woocommerce/client/blocks/assets/js/base/components/cart-checkout/product-metadata/style.scss
@@ -4,7 +4,20 @@
flex-direction: column;
gap: $gap-smallest;
- .wc-block-components-product-metadata__description > p,
+ .wc-block-components-product-metadata__description {
+ > p,
+ > h1,
+ > h2,
+ > h3,
+ > h4,
+ > h5,
+ > h6 {
+ margin: 0;
+ color: inherit;
+ @include font-x-small-locked;
+ }
+ }
+
.wc-block-components-product-metadata__variation-data {
margin: 0;
@include font-x-small-locked;