Add wc-block-mini-cart__contents class for the Mini Cart block (https://github.com/woocommerce/woocommerce-blocks/pull/5800)

* Add wc-block-mini-cart__contents class for the Mini Cart block woocommerce/woocommerce-blocks#5418

Add wc-block-mini-cart__contents class for the Mini Cart block

* removed comment
This commit is contained in:
Luigi Teschio 2022-02-16 17:18:44 +01:00 committed by GitHub
parent 5e55c1ae4a
commit 54ce880762
3 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,4 @@
.editor-styles-wrapper .wp-block-woocommerce-mini-cart-contents {
.editor-styles-wrapper .wc-block-mini-cart__contents {
max-width: 480px;
/* We need to override the margin top here to simulate the layout of
the mini cart contents on the front end. */

View File

@ -74,8 +74,7 @@
}
}
// @todo Review the class naming convention for Mini Cart inner blocks.
.wp-block-woocommerce-mini-cart-contents {
.wc-block-mini-cart__contents {
background: #fff;
box-sizing: border-box;
display: flex;

View File

@ -1,5 +1,5 @@
<!-- wp:woocommerce/mini-cart-contents -->
<div class="wp-block-woocommerce-mini-cart-contents">
<!-- wp:woocommerce/mini-cart-contents {"className":"wc-block-mini-cart__contents"} -->
<div class="wp-block-woocommerce-mini-cart-contents wc-block-mini-cart__contents">
<!-- wp:woocommerce/filled-mini-cart-contents-block -->
<div class="wp-block-woocommerce-filled-mini-cart-contents-block">
<!-- wp:woocommerce/mini-cart-title-block -->