-
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
Block Registration: add SlotFill to extend a block's description #49887
Comments
@jeherve I'm curious if you'd expect this slot to be rendered wherever a block description is rendered. For example, in block previews in the inserter. |
I would expect it to appear in the primary block sidebar only, not in the previews in the inserter. That's just me though. Maybe this could be a parameter? |
So it might be good to contextualize the slot as |
Since this ticket hasn't seen any progress since it was originally punted in the 6.3 release cycle, I'm going to talke it out of the release tracking borad. That doesn't mean that it couldn't go into a release if someone works on it. But since it isn't a major priority we don't need to track it in the release board. |
There is a private slot fill that the Query block uses: We should promote it to the public to resolve this issue. |
Old proposal for API to add links in more declarative way, rather than an all-open slotFill: |
What problem does this address?
It was previously possible to use React nodes in a block's description, like so:
This allowed adding extra information to a block's description, such as links to support documentation or more.
Unfortunately, this is no longer encouraged since #44455.
What is your proposed solution?
Instead of adding all that information to the block's description itself, and since adding it there can have some unintended side-effects, it would be nice to add a new
SlotFill
that would be displayed right below the block's description in the editor sidebar, and nowhere else.The text was updated successfully, but these errors were encountered: