diff --git a/assets/js/blocks/mini-cart/mini-cart-contents/inner-blocks/mini-cart-shopping-button-block/block.json b/assets/js/blocks/mini-cart/mini-cart-contents/inner-blocks/mini-cart-shopping-button-block/block.json index 4f3e75c6979..fe2938cbce9 100644 --- a/assets/js/blocks/mini-cart/mini-cart-contents/inner-blocks/mini-cart-shopping-button-block/block.json +++ b/assets/js/blocks/mini-cart/mini-cart-contents/inner-blocks/mini-cart-shopping-button-block/block.json @@ -24,6 +24,17 @@ } } }, + "styles": [ + { + "name": "fill", + "label": "Fill", + "isDefault": true + }, + { + "name": "outline", + "label": "Outline" + } + ], "parent": [ "woocommerce/empty-mini-cart-contents-block" ], "textdomain": "woo-gutenberg-products-block", "apiVersion": 2 diff --git a/assets/js/blocks/mini-cart/mini-cart-contents/inner-blocks/mini-cart-shopping-button-block/block.tsx b/assets/js/blocks/mini-cart/mini-cart-contents/inner-blocks/mini-cart-shopping-button-block/block.tsx index cb3d88922f8..54cc7a854dc 100644 --- a/assets/js/blocks/mini-cart/mini-cart-contents/inner-blocks/mini-cart-shopping-button-block/block.tsx +++ b/assets/js/blocks/mini-cart/mini-cart-contents/inner-blocks/mini-cart-shopping-button-block/block.tsx @@ -23,6 +23,10 @@ const Block = ( { return null; } + const variant = className.includes( 'is-style-outline' ) + ? 'outlined' + : 'contained'; + return (