Skip to content

Commit

Permalink
Add new ArchiveTitle icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Jan 18, 2021
1 parent 03b2704 commit 47aae1b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/archive-title/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { postTitle as icon } from '@wordpress/icons';
import { archiveTitle as icon } from '@wordpress/icons';

/**
* Internal dependencies
Expand All @@ -16,6 +16,6 @@ export { metadata, name };
export const settings = {
title: __( 'Archive Title' ),
description: __( 'Display the archive title based on the queried object.' ),
icon, // TODO create new Icon.
icon,
edit,
};
1 change: 1 addition & 0 deletions packages/icons/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export { default as alignJustify } from './library/align-justify';
export { default as alignLeft } from './library/align-left';
export { default as alignRight } from './library/align-right';
export { default as archive } from './library/archive';
export { default as archiveTitle } from './library/archive-title';
export { default as arrowDown } from './library/arrow-down';
export { default as arrowLeft } from './library/arrow-left';
export { default as arrowRight } from './library/arrow-right';
Expand Down
16 changes: 16 additions & 0 deletions packages/icons/src/library/archive-title.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* WordPress dependencies
*/
import { SVG, Path } from '@wordpress/primitives';

const archiveTitle = (
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<Path stroke="#1E1E1E" strokeWidth="1.5" d="M4 19.25h9M4 15.25h16" />
<Path
d="M8.994 10.103H6.08L5.417 12H4l2.846-8h1.383l2.845 8H9.657l-.663-1.897zm-.457-1.28l-.994-2.857-1.006 2.857h2z"
fill="#1E1E1E"
/>
</SVG>
);

export default archiveTitle;

0 comments on commit 47aae1b

Please sign in to comment.