-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Add children back to toolbar item render for rendered components #53314
Conversation
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.
Hey @joshuatf , just checking if you have the capacity to wrap up this PR :) |
For some some prettier wasn't working properly on my machine — that should be fixed now. |
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 🚀
Flaky tests detected in c741395. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6158166746
|
What?
Fixes #53313
Allows usage of
children
for toolbar item components that make use of theas
prop.Why?
This was removed in #51623. I believe this was unintentional and missed as a test case since many of the
ToolbarItems
take advantage oficon
orlabel
props, but pinging @diegohaz to confirm that there are no other issues with doing this with the newer Ariakit implementation.How?
This PR simply reverts to passing
children
toBaseToolbarItem
so they can be used by the passed component inrender
.Testing Instructions
as
property andchildren
:Optionally, to see a real-world use case where this was broken:
Testing Instructions for Keyboard
Screenshots or screencast
Before
After