Skip to content

Make Block Inserter search input sticky while scrolling#77698

Open
sarthaknagoshe2002 wants to merge 1 commit intoWordPress:trunkfrom
sarthaknagoshe2002:fix/issue-71995
Open

Make Block Inserter search input sticky while scrolling#77698
sarthaknagoshe2002 wants to merge 1 commit intoWordPress:trunkfrom
sarthaknagoshe2002:fix/issue-71995

Conversation

@sarthaknagoshe2002
Copy link
Copy Markdown
Contributor

What?

Closes #71995

Makes the search input inside the block inserter panel sticky so it remains visible while scrolling through blocks.

Why?

Currently, the search bar scrolls out of view when browsing long lists of blocks. This change prevents users from having to unnecessarily scroll back to the top just to access the search functionality, improving overall workflow and usability.

How?

Updated the .block-editor-inserter__search SCSS to use position: sticky and top: 0. Added a z-index to ensure the scrolled blocks slide cleanly underneath the search input. Intentionally omitted the background color to allow the blocks to remain visible as they slide past the search area, creating a nice visual effect.

Testing Instructions

  1. Open a post or page in the editor.
  2. Click the + (Toggle block inserter) button in the top-left toolbar to open the inserter panel.
  3. Scroll down through the list of available blocks.
  4. Verify that the search input remains fixed at the top of the panel and that blocks scroll cleanly underneath it.

Screenshots or screencast

Before After
image image

@github-actions github-actions Bot added the [Package] Block editor /packages/block-editor label Apr 27, 2026
@github-actions
Copy link
Copy Markdown

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.

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

Co-authored-by: sarthaknagoshe2002 <sarthaknagoshe2002@git.wordpress.org>
Co-authored-by: vincent-bdrt <vincentbdrt@git.wordpress.org>

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

@t-hamano t-hamano added [Type] Enhancement A suggestion for improvement. [Feature] Inserter The main way to insert blocks using the + button in the editing interface Needs Design Feedback Needs general design feedback. labels Apr 28, 2026
@t-hamano t-hamano requested a review from a team April 28, 2026 08:07
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 Needs Design Feedback Needs general design feedback. [Package] Block editor /packages/block-editor [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposal: Make the search input in the Block Inserter sticky

2 participants