Skip to content

Commit

Permalink
Update Post Link block variation icon to match the one used in the Li…
Browse files Browse the repository at this point in the history
…nk UI results. (#50190)

* Update Post Link block variation icon to match the one used in the Link UI search results.

* Update snapshot.
  • Loading branch information
juanfra authored May 25, 2023
1 parent 7eca021 commit f373afe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

1 comment on commit f373afe

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in f373afe.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5082118182
📝 Reported issues:

Please sign in to comment.