From a5dacb74b8670166cadc58c64621b943a880363a Mon Sep 17 00:00:00 2001 From: jasmussen Date: Tue, 23 Jun 2020 12:44:58 +0200 Subject: [PATCH] Change Edit label to crop icon. --- packages/block-library/src/image/image.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/block-library/src/image/image.js b/packages/block-library/src/image/image.js index fe834aab24d04..d5f7c54cebf81 100644 --- a/packages/block-library/src/image/image.js +++ b/packages/block-library/src/image/image.js @@ -32,6 +32,7 @@ import { useEffect, useState } from '@wordpress/element'; import { __, sprintf } from '@wordpress/i18n'; import { getPath } from '@wordpress/url'; import { createBlock } from '@wordpress/blocks'; +import { crop } from '@wordpress/icons'; /** * Internal dependencies @@ -200,9 +201,9 @@ export default function Image( { setIsEditingImage( true ) } - > - { __( 'Crop' ) } - + icon={ crop } + label={ __( 'Crop' ) } + /> ) } { ! isEditingImage && (