-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 DownloadableBlocksList
to use updated Composite
implementation
#55272
Conversation
- Removes `__unstableComposite` imports from `@wordpress/components` - Adds private `Composite*` exports from `@wordpress/components` - Refactors `DownloadableBlocksList` and `DownloadableBlockListItem` to use updated `Composite` components
DownloadableBlocksList
DownloadableBlocksList
to use updated Composite
implementation
Size Change: +1.66 kB (0%) Total Size: 1.65 MB
ℹ️ View Unchanged
|
Flaky tests detected in 4f8052b. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6484967006
|
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 🚀
Left a couple of comments, feel free to merge once they're addressed.
packages/block-directory/src/components/downloadable-block-list-item/index.js
Outdated
Show resolved
Hide resolved
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.
Tested well for me. 👍
Should be good once Marco's feedback is addressed.
Nice to see us utilizing the new Composite
already 🚀
packages/block-directory/src/components/downloadable-block-list-item/index.js
Outdated
Show resolved
Hide resolved
Added |
I think that a better issue for the |
What?
This PR updates
AddCustomTemplateModalContent
andDownloadableBlockListItem
in@wordpress/block-directory
to use the updatedComposite
implementation from #54225.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
DownloadableBlocksList
andDownloadableBlockListItem
to use updatedComposite
componentsTesting Instructions
listbox
, the behaviour of which should be no different than beforeTesting Instructions for Keyboard
The
listbox
containing the installable blocks should act as a single tab stop, with arrow keys used to navigate between items.