Commit 8d851970e75 for woocommerce
commit 8d851970e75f597c8d9347204069a7efefc730f2
Author: Thomas Roberts <5656702+opr@users.noreply.github.com>
Date: Fri Mar 20 11:52:23 2026 +0000
Ensure mini-cart drawer gets correct background colour (#63758)
* Use correct namespace for mini cart store
* Add changelog
diff --git a/plugins/woocommerce/changelog/fix-minicart-white-bg b/plugins/woocommerce/changelog/fix-minicart-white-bg
new file mode 100644
index 00000000000..71d20ab1cdc
--- /dev/null
+++ b/plugins/woocommerce/changelog/fix-minicart-white-bg
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Prevent mini-cart drawer having a white background and use page background instead
diff --git a/plugins/woocommerce/src/Blocks/BlockTypes/MiniCartContents.php b/plugins/woocommerce/src/Blocks/BlockTypes/MiniCartContents.php
index ca63fe1bdb9..7d1fb90db99 100644
--- a/plugins/woocommerce/src/Blocks/BlockTypes/MiniCartContents.php
+++ b/plugins/woocommerce/src/Blocks/BlockTypes/MiniCartContents.php
@@ -67,7 +67,7 @@ class MiniCartContents extends AbstractBlock {
$wrapper_attributes = get_block_wrapper_attributes(
array(
'data-wp-interactive' => 'woocommerce/mini-cart-contents',
- 'data-wp-style--background-color' => 'state.contentsBackgroundColor',
+ 'data-wp-style--background-color' => 'woocommerce/mini-cart::state.contentsBackgroundColor',
)
);