-
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
Standardize the usage of the InspectorControls "group" slots for all ToolsPanel components we provide in Gutenberg #67814
Comments
This is probably just me but after re-reading this issue a couple of times I can't quite work out if it is conflating the The
This sounds like you're chasing a new SlotFill for all the possible
Wouldn't this just be a |
@aaronrobertshaw yes sounds are right this is conflating things and therefore isn't clear. I have updated the title to hopefully better reflect it. At the end of the day the goal here is to allow 3rd parties to use the We already do support that for pretty much all the design tools. What we need to add are the following groups
(and maybe there are a few additional outliers) |
Appreciate the clarification @fabiankaegy, I believe I'm on the same page now 👍 It seems conceptually that we could leave the Regarding extensibility, are there plans to allow 3rd parties to define their own inspector control groups (slot fills) so additional 3rd parties can inject controls into their groups/panels too? If there are only a few extra group SlotFills to add, that could be a quick win.
After a quick glance at the existing groups, there's already a Hopefully, that helps anyone picking this up get some traction quickly 🤞 |
One of the great advantages of the
ToolsPanel
component over thePanelBody
is that it's much easier to target specific tool panels to register additional controls to show up inside of them.This is already heavily used for all the design tools. They all have unique groups that someone can slot additional settings into via the
group
property of theInspectorControls
component.However this behavior is not standardized right now. We have groups defined for:
color
background
typography
dimensions
border
styles
advanced
bindings
In #67813 we are looking at standardizing the usage of the
ToolsPanel
component for settings also. So it would be great to find a way to have everyToolsPanel
associated with a group to standardize this behavior in general.Most of these should be generalized groups such as
settings
/display
. But there will be a need for one-offs like thefilters
group of the Query Loop block.The text was updated successfully, but these errors were encountered: