Improve UX for adding images to a gallery block from the media library#71204
Improve UX for adding images to a gallery block from the media library#71204dhruvikpatel18 wants to merge 3 commits intoWordPress:trunkfrom
Conversation
| template: DEFAULT_TEMPLATE, | ||
| orientation: 'horizontal', | ||
| renderAppender: false, | ||
| renderAppender: InnerBlocks.defaultBlockAppender, |
There was a problem hiding this comment.
This does seem like a good addition, similar to the Buttons block, and other design-related blocks such as Columns, Grid, and Group, which have an appender. The gallery block currently lacks one. so adding it would improve consistency.
If there’s enough consensus, should we raise a separate follow-up PR to address this?
There was a problem hiding this comment.
Thanks for the suggestion, I have raised separate follow-up PR to address above: #71236
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Thanks for the PR. Left some related feedback here as well. It's not a bad instinct, but it's not clear to me yet that this is a clear improvement. The main piece on my mind is to improve the media library itself, for which I've seen a few efforts being underway. In this PR, even if I appreciate the motivation and it arguably has a nicer setup state, it seems like it would actually add more clicks to build a gallery, by having to engage with each image placeholder individually rather than just multi selecting images inside the modal. |
What?
Closes #48417
Improves the UX for adding images to a Gallery block when there is only a single image.
This PR ensures that a placeholder (empty image block) is always available after inserting the first image, making it easier to continue adding more without extra clicks.
Why?
Currently, when a Gallery block has only one image, it is not obvious how to add additional images from the media library.
Users must:
This creates unnecessary friction. The “+” appender only becomes visible once the gallery has 2 or more images.
This PR reduces that friction by always showing an empty Image block placeholder immediately after the first image is added.
Testing Instructions
Screenshots or screencast
Gallery.Block.mov