From 7dc57d45bb84c35b85259353b9b344494d618d9a Mon Sep 17 00:00:00 2001 From: James Koster Date: Wed, 6 Apr 2022 14:37:31 +0100 Subject: [PATCH 1/2] Update the Post Tags block icon --- packages/block-library/src/post-terms/variations.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/block-library/src/post-terms/variations.js b/packages/block-library/src/post-terms/variations.js index 8f8e606295f1af..0b9e2e714fda24 100644 --- a/packages/block-library/src/post-terms/variations.js +++ b/packages/block-library/src/post-terms/variations.js @@ -2,14 +2,14 @@ * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { postCategories as icon } from '@wordpress/icons'; +import { postCategories, tag } from '@wordpress/icons'; const variations = [ { name: 'category', title: __( 'Post Categories' ), description: __( "Display a post's categories." ), - icon, + icon: postCategories, isDefault: true, attributes: { term: 'category' }, isActive: ( blockAttributes ) => blockAttributes.term === 'category', @@ -19,7 +19,7 @@ const variations = [ name: 'post_tag', title: __( 'Post Tags' ), description: __( "Display a post's tags." ), - icon, + icon: tag, attributes: { term: 'post_tag' }, isActive: ( blockAttributes ) => blockAttributes.term === 'post_tag', }, From 0ba5cca4f59960de176781e3648ffc32bc32ca76 Mon Sep 17 00:00:00 2001 From: James Koster Date: Wed, 6 Apr 2022 15:09:25 +0100 Subject: [PATCH 2/2] Use `postTerms` icon for Post Tags --- packages/block-library/src/post-terms/variations.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-library/src/post-terms/variations.js b/packages/block-library/src/post-terms/variations.js index 0b9e2e714fda24..14ddb3cb095147 100644 --- a/packages/block-library/src/post-terms/variations.js +++ b/packages/block-library/src/post-terms/variations.js @@ -2,7 +2,7 @@ * WordPress dependencies */ import { __ } from '@wordpress/i18n'; -import { postCategories, tag } from '@wordpress/icons'; +import { postCategories, postTerms } from '@wordpress/icons'; const variations = [ { @@ -19,7 +19,7 @@ const variations = [ name: 'post_tag', title: __( 'Post Tags' ), description: __( "Display a post's tags." ), - icon: tag, + icon: postTerms, attributes: { term: 'post_tag' }, isActive: ( blockAttributes ) => blockAttributes.term === 'post_tag', },