List View: Adds a renderAdditionalBlockUI prop to ListView#50465
List View: Adds a renderAdditionalBlockUI prop to ListView#50465
Conversation
|
Size Change: -240 B (0%) Total Size: 1.38 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in dc2af00. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4924939215
|
|
I think this is flexible enough for what we need to achieve here and will help us reduce a lot of duplicated code while giving us the option to iterate on it in the future should we decide on a better solution |
draganescu
left a comment
There was a problem hiding this comment.
I think this is a good start to help us phase out the OffCanvasEditor component and use ListView in its place via private unchangeable props. It's not 100% the best solution but it does advance the goal and can easily be changed later with whatever the better solution will turn out to be.
What?
This is broken out of #50287. Adds a new
renderAdditionalBlockUIprop to the ListView so that we can inject additional UI for blocks depending on the context we load the ListView in.Why?
This will make it possible to edit blocks using the List View, which is a feature we require when using the ListView in the navigation inspector controls, and in the global navigation sidebar. This approach has already been used in the OffCanvasEditor component.
How?
Adding a new prop and make it private.
Testing Instructions
See #50287