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
1 change: 1 addition & 0 deletions packages/fields/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- `AuthorView`: Fetch the author through the users list in the `view` context, so users who can't edit other users still see the author's name and avatar, including for authors without published posts. ([#83498](https://github.com/WordPress/gutenberg/pull/83498))
- Declare `react-dom` and `@types/react-dom` as peer dependencies, forwarding the peers of `@wordpress/element`, so strict package managers such as Yarn PnP can resolve them ([#83765](https://github.com/WordPress/gutenberg/pull/83765)).
- `MediaEdit`: Show a checkerboard background behind image previews, so images with transparent backgrounds stay visible, as in the classic featured image panel. ([#83846](https://github.com/WordPress/gutenberg/pull/83846))

## 0.48.0 (2026-09-23)

Expand Down
3 changes: 3 additions & 0 deletions packages/fields/src/components/media-edit/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@use "@wordpress/base-styles/colors" as *;
@use "@wordpress/base-styles/variables" as *;
@use "@wordpress/base-styles/mixins";

@mixin preview-overlay {
border-radius: $radius-small;
Expand Down Expand Up @@ -155,6 +156,7 @@ fieldset.fields__media-edit {
aspect-ratio: 1 / 1;
flex-shrink: 0;
border-radius: $radius-small;
@include mixins.checkerboard-background( 4px );

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The small compact thumbnail uses 4px so the pattern reads well at 24px width. It could be 8px though if design wants..

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is the checkerboard itself really necessary in the compact view? Personally, it looks a bit weird to me... @WordPress/gutenberg-design

image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We'd still need to handle white pngs with transparent background.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That is definitely true. In that case, I think we can leave it as it is for now.

}

.fields__media-edit-expanded {
Expand Down Expand Up @@ -228,6 +230,7 @@ fieldset.fields__media-edit {
height: 100%;
object-fit: cover;
object-position: 50% 50%;
@include mixins.checkerboard-background( 12px );
}

.fields__media-edit-filename {
Expand Down
Loading