-
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
Migrating InserterListbox
to use updated Composite implementation
#56246
Conversation
- Removes `__unstableComposite` imports from `@wordpress/components` - Adds private `Composite*` exports from `@wordpress/components` - Refactors `InserterListbox`, `InserterListboxRow` and `InserterListboxItem` to use updated `Composite` components - Additionally updates `BlockTypesList` to ensure listbox items are appropriately grouped
Size Change: +155 B (0%) Total Size: 1.7 MB
ℹ️ View Unchanged
|
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.
Tests well as per instructions 🚀
Flaky tests detected in d726e73. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6935625089
|
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.
LGTM 🚀 🚢
What?
This PR updates
InserterListbox
,InserterListboxRow
, andInserterListboxItem
in@wordpress/block-editor
to use the updatedComposite
implementation from #54225.Additionally, it updates
BlockTypesList
(also in@wordpress/block-editor
) to ensure list items are appropriately grouped.Why?
In #54225, an updated implementation of
Composite
was added to@wordpress/components
. As per #55224, all consumers ofComposite
need to migrate from the old version to the new version.How?
__unstableComposite
imports from@wordpress/components
Composite*
exports from@wordpress/components
InserterListbox
,InserterListboxRow
andInserterListboxItem
to use updatedComposite
componentsBlockTypesList
to ensure listbox items are appropriately grouped by adding an explicitrowId
Testing Instructions
In the editor, open the Block Inserter sidebar, with the Blocks tab open. Visually and behaviourally, there should be no difference.
Testing Instructions for Keyboard
Navigate to the "Blocks" tab panel: