Skip to content

Commit

Permalink
Update Calendar block icon for better alignment with the Archives blo…
Browse files Browse the repository at this point in the history
…ck icon (WordPress#15628)

* Update Calendar block icon to match Archives block

* Remove unnecessary fill=none

* Update icons

Use the old Archives icon for the Calendar block, add a new icon to the Archives block.
  • Loading branch information
kjellr authored May 16, 2019
1 parent b2629ce commit b6dcb20
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/block-library/src/archives/icon.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* WordPress dependencies
*/
import { G, Path, SVG } from '@wordpress/components';
import { Path, SVG } from '@wordpress/components';

export default (
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><Path fill="none" d="M0 0h24v24H0V0z" /><G><Path d="M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z" /></G></SVG>
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><Path d="M21 6V20C21 21.1 20.1 22 19 22H5C3.89 22 3 21.1 3 20L3.01 6C3.01 4.9 3.89 4 5 4H6V2H8V4H16V2H18V4H19C20.1 4 21 4.9 21 6ZM5 8H19V6H5V8ZM19 20V10H5V20H19ZM11 12H17V14H11V12ZM17 16H11V18H17V16ZM7 12H9V14H7V12ZM9 18V16H7V18H9Z" /></SVG>
);
8 changes: 8 additions & 0 deletions packages/block-library/src/calendar/icon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* WordPress dependencies
*/
import { G, Path, SVG } from '@wordpress/components';

export default (
<SVG viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><Path fill="none" d="M0 0h24v24H0V0z" /><G><Path d="M7 11h2v2H7v-2zm14-5v14c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2l.01-14c0-1.1.88-2 1.99-2h1V2h2v2h8V2h2v2h1c1.1 0 2 .9 2 2zM5 8h14V6H5v2zm14 12V10H5v10h14zm-4-7h2v-2h-2v2zm-4 0h2v-2h-2v2z" /></G></SVG>
);
3 changes: 2 additions & 1 deletion packages/block-library/src/calendar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ import { __ } from '@wordpress/i18n';
* Internal dependencies
*/
import edit from './edit';
import icon from './icon';

export const name = 'core/calendar';

export const settings = {
title: __( 'Calendar' ),
description: __( 'A calendar of your site’s posts.' ),
icon: 'calendar',
icon,
category: 'widgets',
keywords: [ __( 'posts' ), __( 'archive' ) ],
supports: {
Expand Down

0 comments on commit b6dcb20

Please sign in to comment.