Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post Date block: Added Post Date icon and updated block with icon and desc #24178

Merged
merged 5 commits into from
Jul 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/block-library/src/post-date/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { postDate as icon } from '@wordpress/icons';

/**
* Internal dependencies
Expand All @@ -14,5 +15,7 @@ export { metadata, name };

export const settings = {
title: __( 'Post Date' ),
description: __( 'Add the date of this post.' ),
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 @@ -117,6 +117,7 @@ export { default as plugins } from './library/plugins';
export { default as plusCircleFilled } from './library/plus-circle-filled';
export { default as plusCircle } from './library/plus-circle';
export { default as plus } from './library/plus';
export { default as postDate } from './library/post-date';
export { default as postList } from './library/post-list';
export { default as postTitle } from './library/post-title';
export { default as preformatted } from './library/preformatted';
Expand Down
21 changes: 21 additions & 0 deletions packages/icons/src/library/post-date.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* WordPress dependencies
*/
import { Path, SVG } from '@wordpress/primitives';

const postDate = (
<SVG fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path
d="M11.696 13.972c.356-.546.599-.958.728-1.235a1.79 1.79 0 00.203-.783c0-.264-.077-.47-.23-.618-.148-.153-.354-.23-.618-.23-.295 0-.569.07-.82.212a3.413 3.413 0 00-.738.571l-.147-1.188c.289-.234.59-.41.903-.526.313-.117.66-.175 1.041-.175.375 0 .695.08.959.24.264.153.46.362.59.626.135.265.203.556.203.876 0 .362-.08.734-.24 1.115-.154.381-.427.87-.82 1.466l-.756 1.152H14v1.106h-4l1.696-2.609z"
fill="#1E1E1E"
/>
<Path
fill-rule="evenodd"
clip-rule="evenodd"
d="M19.5 7h-15v12a.5.5 0 00.5.5h14a.5.5 0 00.5-.5V7zM3 7V5a2 2 0 012-2h14a2 2 0 012 2v14a2 2 0 01-2 2H5a2 2 0 01-2-2V7z"
fill="#1E1E1E"
/>
</SVG>
);

export default postDate;