Skip to content

Commit

Permalink
Change icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Feb 28, 2024
1 parent c5a425c commit 10a6774
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/edit-post/src/components/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
import { useEffect, useRef, useState } from '@wordpress/element';
import { useSelect, useDispatch } from '@wordpress/data';
import { __ } from '@wordpress/i18n';
import { next, previous, box } from '@wordpress/icons';
import { next, previous, metabox } from '@wordpress/icons';
import { PinnedItems } from '@wordpress/interface';
import { useViewportMatch } from '@wordpress/compose';
import {
Expand Down Expand Up @@ -192,7 +192,7 @@ function Header( { setEntitiesSavedStatesCallback, initialPost } ) {
/>
{ hasActiveMetaboxes && (
<Button
icon={ box }
icon={ metabox }
onClick={ () => {
toggleMetaBoxes();
} }
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 @@ -150,6 +150,7 @@ export { default as media } from './library/media';
export { default as mediaAndText } from './library/media-and-text';
export { default as megaphone } from './library/megaphone';
export { default as menu } from './library/menu';
export { default as metabox } from './library/metabox';
export { default as mobile } from './library/mobile';
export { default as more } from './library/more';
export { default as moreHorizontal } from './library/more-horizontal';
Expand Down
16 changes: 16 additions & 0 deletions packages/icons/src/library/metabox.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* WordPress dependencies
*/
import { SVG, Path } from '@wordpress/primitives';

const metabox = (
<SVG width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg">
<Path
fill-rule="evenodd"
clip-rule="evenodd"
d="M20 14v4c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2v-4h16Zm0-1.5V6c0-1.1-.9-2-2-2H6c-1.1 0-2 .9-2 2v6.5h1.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v6.5H20ZM5.5 18c0 .3.2.5.5.5h12c.3 0 .5-.2.5-.5v-2.5h-13V18Z"
/>
</SVG>
);

export default metabox;

0 comments on commit 10a6774

Please sign in to comment.