Skip to content

Fix/in between inserter for gallery#71531

Open
levinbaria wants to merge 2 commits intoWordPress:trunkfrom
levinbaria:fix/in-between-inserter-for-gallery
Open

Fix/in between inserter for gallery#71531
levinbaria wants to merge 2 commits intoWordPress:trunkfrom
levinbaria:fix/in-between-inserter-for-gallery

Conversation

@levinbaria
Copy link
Copy Markdown
Contributor

What?

Closes #64222
Fixes missing block insertion points between items when an InnerBlocks area is laid out horizontally.

Why?

When InnerBlocks uses orientation="horizontal":

  • If children wrap onto a second row, the blue “insertion line with +” doesn’t appear between items on wrapped rows, so users can’t insert blocks where the cursor is.

  • In horizontally scrollable containers (e.g., sliders), insertion points don’t appear between items that are outside the initially visible area until scrolled into view.

How?

Testing Instructions

Buttons block (wrap case)

  • Create a page/post.

  • Insert Buttons. Add enough buttons so they wrap to a second line (reduce editor width if needed).

  • Hover between buttons on the second line.

  • ✅ An insertion cue appears between the hovered items; clicking + inserts a new Button there.

  • Same for the Gallery Block as well.

Testing Instructions for Keyboard

Screenshots or screencast

Before After

@levinbaria levinbaria requested a review from ellatrix as a code owner September 7, 2025 05:08
@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 7, 2025

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 props-bot label.

Unlinked Accounts

The following contributors have not linked their GitHub and WordPress.org accounts: @digitalex11.

Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Unlinked contributors: digitalex11.

Co-authored-by: levinbaria <levinbaria@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: t-hamano <wildworks@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@shail-mehta shail-mehta added [Type] Bug An existing feature does not function as intended [Feature] Inserter The main way to insert blocks using the + button in the editing interface labels Sep 7, 2025
@t-hamano t-hamano self-requested a review January 17, 2026 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Inserter The main way to insert blocks using the + button in the editing interface [Type] Bug An existing feature does not function as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

block-insertion-points missing between innerBlock-elements

2 participants