Mini Cart Block: additional class are visible on the frontend page
This commit is contained in:
Luigi Teschio 2022-07-20 09:57:41 +02:00 committed by GitHub
parent ad4fb01228
commit c1c2860232
1 changed files with 4 additions and 1 deletions

View File

@ -339,7 +339,10 @@ class MiniCart extends AbstractBlock {
$classes_styles = StyleAttributesUtils::get_classes_and_styles_by_attributes( $attributes, array( 'text_color', 'background_color', 'font_size', 'font_family' ) );
$wrapper_classes = sprintf( 'wc-block-mini-cart wp-block-woocommerce-mini-cart %s', $classes_styles['classes'] );
$wrapper_styles = $classes_styles['styles'];
if ( ! empty( $attributes['className'] ) ) {
$wrapper_classes .= ' ' . $attributes['className'];
}
$wrapper_styles = $classes_styles['styles'];
$aria_label = sprintf(
/* translators: %1$d is the number of products in the cart. %2$s is the cart total */