Skip to content

Commit

Permalink
Update: chevron to home icon. (#64161)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen authored Aug 1, 2024
1 parent 644264c commit c04a6f4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/edit-site/src/components/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { store as noticesStore } from '@wordpress/notices';
import { privateApis as routerPrivateApis } from '@wordpress/router';
import { store as preferencesStore } from '@wordpress/preferences';
import { decodeEntities } from '@wordpress/html-entities';
import { Icon, chevronLeft } from '@wordpress/icons';
import { Icon, homeButton } from '@wordpress/icons';

/**
* Internal dependencies
Expand Down Expand Up @@ -292,7 +292,7 @@ export default function EditSiteEditor( { isPostsList = false } ) {
) }
variants={ toggleHomeIconVariants }
>
<Icon icon={ chevronLeft } />
<Icon icon={ homeButton } />
</motion.div>
</motion.div>
)
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 @@ -117,6 +117,7 @@ export { default as helpFilled } from './library/help-filled';
export { default as inbox } from './library/inbox';
export { default as institution } from './library/institution';
export { default as home } from './library/home';
export { default as homeButton } from './library/home-button';
export { default as html } from './library/html';
export { default as image } from './library/image';
export { default as info } from './library/info';
Expand Down
16 changes: 16 additions & 0 deletions packages/icons/src/library/home-button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* WordPress dependencies
*/
import { SVG, Path } from '@wordpress/primitives';

const homeButton = (
<SVG xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<Path
fill-rule="evenodd"
clip-rule="evenodd"
d="M4.25 7A2.75 2.75 0 0 1 7 4.25h10A2.75 2.75 0 0 1 19.75 7v10A2.75 2.75 0 0 1 17 19.75H7A2.75 2.75 0 0 1 4.25 17V7ZM7 5.75c-.69 0-1.25.56-1.25 1.25v10c0 .69.56 1.25 1.25 1.25h10c.69 0 1.25-.56 1.25-1.25V7c0-.69-.56-1.25-1.25-1.25H7Z"
/>
</SVG>
);

export default homeButton;

0 comments on commit c04a6f4

Please sign in to comment.