Fix review block icons not having foreground color (https://github.com/woocommerce/woocommerce-blocks/pull/952)

This commit is contained in:
Albert Juhé Lluveras 2019-09-09 12:47:33 +02:00 committed by GitHub
parent e4ff6eb606
commit 616293deb0
2 changed files with 8 additions and 2 deletions

View File

@ -18,7 +18,10 @@ import save from '../save.js';
*/
registerBlockType( 'woocommerce/reviews-by-category', {
title: __( 'Reviews by Category', 'woo-gutenberg-products-block' ),
icon: <IconReviewsByCategory />,
icon: {
src: <IconReviewsByCategory />,
foreground: '#96588a',
},
category: 'woocommerce',
keywords: [ __( 'WooCommerce', 'woo-gutenberg-products-block' ) ],
description: __(

View File

@ -18,7 +18,10 @@ import save from '../save.js';
*/
registerBlockType( 'woocommerce/reviews-by-product', {
title: __( 'Reviews by Product', 'woo-gutenberg-products-block' ),
icon: <IconReviewsByProduct />,
icon: {
src: <IconReviewsByProduct />,
foreground: '#96588a',
},
category: 'woocommerce',
keywords: [ __( 'WooCommerce', 'woo-gutenberg-products-block' ) ],
description: __(