Skip to content

Commit

Permalink
- also wrap the placeholder in an a tag for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Nov 8, 2023
1 parent 1c3b5db commit a2591df
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/block-library/src/post-featured-image/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,17 @@ export default function PostFeaturedImageEdit( {
<>
{ controls }
<div { ...blockProps }>
{ placeholder() }
{ !! isLink ? (
<a
href={ postPermalink }
target={ linkTarget }
{ ...disabledClickProps }
>
{ placeholder() }
</a>
) : (
placeholder()
) }
<Overlay
attributes={ attributes }
setAttributes={ setAttributes }
Expand Down

0 comments on commit a2591df

Please sign in to comment.