Skip to content

Commit

Permalink
Update site-logo block icon. (#30211)
Browse files Browse the repository at this point in the history
Props @pablohoneyhoney for design
  • Loading branch information
mtias authored Mar 25, 2021
1 parent 6be973b commit 0072ae7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 26 deletions.
2 changes: 1 addition & 1 deletion packages/block-library/src/site-logo/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ import {
} from '@wordpress/block-editor';
import { useSelect, useDispatch } from '@wordpress/data';
import { store as coreStore } from '@wordpress/core-data';
import { siteLogo as icon } from '@wordpress/icons';

/**
* Internal dependencies
*/
import icon from './icon';
import useClientWidth from '../image/use-client-width';

/**
Expand Down
24 changes: 0 additions & 24 deletions packages/block-library/src/site-logo/icon.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/block-library/src/site-logo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
* WordPress dependencies
*/
import { __, _x } from '@wordpress/i18n';
import { siteLogo as icon } from '@wordpress/icons';

/**
* Internal dependencies
*/
import metadata from './block.json';
import icon from './icon';
import edit from './edit';

const { name } = metadata;
Expand Down
1 change: 1 addition & 0 deletions packages/icons/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export { default as search } from './library/search';
export { default as separator } from './library/separator';
export { default as settings } from './library/settings';
export { default as share } from './library/share';
export { default as siteLogo } from './library/site-logo';
export { default as shortcode } from './library/shortcode';
export { default as stack } from './library/stack';
export { default as starEmpty } from './library/star-empty';
Expand Down
12 changes: 12 additions & 0 deletions packages/icons/src/library/site-logo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* WordPress dependencies
*/
import { SVG, Path } from '@wordpress/primitives';

const siteLogo = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path d="M12 3c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 1.5c4.1 0 7.5 3.4 7.5 7.5v.1c-1.4-.8-3.3-1.7-3.4-1.8-.2-.1-.5-.1-.8.1l-2.9 2.1L9 11.3c-.2-.1-.4 0-.6.1l-3.7 2.2c-.1-.5-.2-1-.2-1.5 0-4.2 3.4-7.6 7.5-7.6zm0 15c-3.1 0-5.7-1.9-6.9-4.5l3.7-2.2 3.5 1.2c.2.1.5 0 .7-.1l2.9-2.1c.8.4 2.5 1.2 3.5 1.9-.9 3.3-3.9 5.8-7.4 5.8z" />
</SVG>
);

export default siteLogo;

0 comments on commit 0072ae7

Please sign in to comment.