Skip to content

Commit

Permalink
Use a Notice instead of a paragraph.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Nov 15, 2024
1 parent d8f25c1 commit b18053d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/editor/src/components/post-featured-image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
withNotices,
withFilters,
__experimentalHStack as HStack,
Notice,
} from '@wordpress/components';
import { isBlobURL } from '@wordpress/blob';
import { useState, useRef } from '@wordpress/element';
Expand Down Expand Up @@ -184,11 +185,14 @@ function PostFeaturedImage( {
render={ ( { open } ) => (
<div className="editor-post-featured-image__container">
{ isMissingMedia ? (
<p>
<Notice
status="warning"
isDismissible={ false }
>
{ __(
'Could not retrieve the featured image data.'
) }
</p>
</Notice>
) : (
<Button
__next40pxDefaultSize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

.editor-post-featured-image__actions.editor-post-featured-image__actions-missing-image {
opacity: 1;
margin-top: $grid-unit-20;
}

.components-drop-zone__content {
Expand Down

0 comments on commit b18053d

Please sign in to comment.