-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to hide/disable the search box in the global block inserter #34656
Add ability to hide/disable the search box in the global block inserter #34656
Conversation
Possibly to be extracted to seperate PR
Size Change: +50 B (0%) Total Size: 1.04 MB
ℹ️ View Unchanged
|
What if plugins register their own blocks or their variations to render in the scope of the Navigation block? What if there are blocks in the Block Directory? How users would discover them when the search form is removed? |
After some discussion on the PR which spawned this PR, we decided to drop the idea of hiding the search box. I'm going to close this one out as not a good idea after all 😄 |
Description
In #34619 we learnt that in certain circumstances it makes sense to disable the search feature UI from the global block inserter. For example, in the Nav Editor screen the proposed addition of the global block inserter doesn't need a search as there are a very limited number of blocks from which to choose
This PR
As we default the search to
true
(active) this change should be fully backwards compatible with all existing usages.How has this been tested?
Tricky to test but perhaps:
packages/edit-post/src/components/secondary-sidebar/inserter-sidebar.js
.showSearch={false}
to the<Library />
component.trunk
.Screenshots
This is how the feature appears when there is no search box
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).