Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
add __experimentalSkipSerialization, remove editor style
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhtungdu committed Nov 16, 2021
1 parent cd853d4 commit 27a2584
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 0 additions & 5 deletions assets/js/blocks/cart-checkout/mini-cart/editor.scss

This file was deleted.

12 changes: 11 additions & 1 deletion assets/js/blocks/cart-checkout/mini-cart/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,17 @@ const settings = {
supports: {
html: false,
multiple: false,
color: true,
color: {
/**
* Because we don't target the wrapper element, we don't need
* to add color classes and style to the wrapper.
*/
__experimentalSkipSerialization: true,
},
/**
* We need this experimental flag because we don't want to style the
* wrapper but inner elements.
*/
__experimentalSelector:
'.wc-block-mini-cart__button, .wc-block-mini-cart__badge',
},
Expand Down

0 comments on commit 27a2584

Please sign in to comment.