Skip to content
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
4 changes: 2 additions & 2 deletions packages/block-library/src/navigation-link/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
import {
category,
page,
postContent,
postList,
tag,
customPostType,
} from '@wordpress/icons';

function getIcon( variationName ) {
switch ( variationName ) {
case 'post':
return postContent;
return postList;
case 'page':
return page;
case 'tag':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ exports[`hooks enhanceNavigationLinkVariations enhances variations with icon and
"description": "A link to a post.",
"icon": <SVG
viewBox="0 0 24 24"
xmlns="https://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
>
<Path
d="M4 20h16v-1.5H4V20zm0-4.8h16v-1.5H4v1.5zm0-6.4v1.5h16V8.8H4zM16 4H4v1.5h12V4z"
d="M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm.5 14c0 .3-.2.5-.5.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h12c.3 0 .5.2.5.5v12zM7 11h2V9H7v2zm0 4h2v-2H7v2zm3-4h7V9h-7v2zm0 4h7v-2h-7v2z"
/>
</SVG>,
"isActive": [Function],
Expand Down