-
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
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
renderAdditionalBlockUI
prop 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