- Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
This issue aims to assist in tracking the required follow-ups resulting from the recent merge of the new ToolsPanel component and dimensions panel updates.
Tasks
Blocks
- Cover: Move cover min-height into dimensions panel via SlotFill #34065
- Group Block: Add support for margin control to the group block #33909
Block Supports
Before the new supports proposed in #28356 were to be added, it was desired to have a means of progressive disclosure for the Dimensions panel. With the ToolsPanel now in place and providing this, the following block supports can be picked up.
- Block Support: Add height block support feature #32499
- Block Support: Add min-height block support #33970
- Block Support: Add width block support feature #32502
Updating Block Support Panels
Now the ToolsPanel has landed we can switch all the block support panels over to using this component. This will hopefully allow greater adoption of block supports while reducing the prominence of those supports' UI when it's not required.
Once all block supports have been switched over to the ToolsPanel, ordering these as per #35541 will only be a matter of reordering the InspectorControls slots accordingly.
- Switch typography block support to use
ToolsPanel - Switch border block support to use
ToolsPanel - Switch colors block support to use
ToolsPanel
Determining Default Controls
Different blocks will need different block support controls exposed by default.
For each block support toolset, find all the blocks that opt into that support and determine which if any controls should be shown by default. Each block's block.json file could be updated in separate PRs for more focused discussion or as a batch if this first pass on controls is rather superficial.
- Dimensions panel defaults
- Border panel defaults
- Color panel defaults
- Typography panel defaults
ToolsPanel UI
- ToolsPanel: switch to plus icon when no controls present in panel body #34107
- ToolsPanel: change icon from horizontal to vertical ellipsis #34369
- ToolsPanel: Refine component behaviour #34530
- Audit and improve ToolsPanel's a11y (semantics, focus management, announcing changes to screen reader users)
Miscellaneous
- ToolsPanel component: refactor to typescript #34028
- Dimensions Support: Add SlotFill to Dimensions Panel #34063
- ToolsPanel: Use Grid component to handle layout #35621
- ToolsPanel: Improve unit tests #35658
- ToolsPanel: Remove hardcoded classnames #35415
- ToolsPanelItem: Add panelId check before calling toggle methods #35375
- InspectorControls: Wrap block support slots in ToolsPanel #34157
Future Follow-Ups
- [WIP] Button: Adopt width block support for button widths #32878
- Possibly exposing underlying Grid component in ToolsPanel for more flexibility and control of panel layout
Metadata
Metadata
Assignees
Labels
Type
Projects
Status