-
Notifications
You must be signed in to change notification settings - Fork 218
Auto-insert the Mini Cart block after the Navigation block #10649
Auto-insert the Mini Cart block after the Navigation block #10649
Conversation
… in the feature plugin.
…er-navigation-block
The release ZIP for this PR is accessible via:
Script Dependencies ReportThe
This comment was automatically generated by the TypeScript Errors Report
🎉 🎉 This PR does not introduce new TS errors. |
Size Change: 0 B Total Size: 1.42 MB ℹ️ View Unchanged
|
Hey @nefeline, thanks for working on this! 🙏 I see some issues with this approach because we cannot really control into which patterns (or navigation blocks) it will be inserted. With our current patterns, we could end up with multiple Mini-cart blocks on the page, or in unexpected positions. |
Thanks for the review @albarin !
Good point, I'll move this PR back to in progress and spend some time investigating if we can narrow down its usage to core's header template parts: I suspect there's more work required on the GB side in order for us to rely on this feature conditionally to auto-insert blocks. |
This PR has been marked as If deemed still relevant, the pr can be kept active by ensuring it's up to date with the main branch and removing the stale label. |
This PR has been marked as If deemed still relevant, the pr can be kept active by ensuring it's up to date with the main branch and removing the stale label. |
This is superseded by #11745 - so I'll close this. Thanks for your early experiments with this Patricia! |
Fixes woocommerce/woocommerce#42385
Why
Following up on the work made on WordPress/gutenberg#51449, the Mini Cart block can now be auto-inserted right after the Navigation block.
Since this is still an experimental feature within Gutenberg, we are here restricting its usage to the feature plugin at this first moment.
Testing Instructions
Screenshots or screencast
WooCommerce Visibility
Required:
Checklist
Required:
[type]
label or a[skip-changelog]
label.Conditional:
[skip-changelog]
label is not present).Changelog