-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Labels
[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experiTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Description
As of #45300, a minimally viable version of the minimum height block support has been introduced, which opts both the Group and Post Content blocks in to a minimum height control in the dimensions panel, which is hidden by default.
There were some good suggestions and ideas flagged both on that PR and some related issues. This issue is to group together some of those tasks and notes so that they don't get missed.
Tasks
- Add a range control slider beside the Min height control, similar to font size and custom padding controls. While there is not (yet) a SliderUnitControl component (as discussed in SliderControl: Create new control using imported G2 Slider component #42315), in the shorter-term, we can likely create a block editor component for both the post editor and global styles that groups together the
UnitControlwith aRangeControl. - Add a resizeable box that users can drag to set the height of the block, similar to how the Cover block's ad hoc controls work. There is a comment here that provides more context and ideas: Add a minHeight block support under dimensions #45300 (comment) — that comment links to explorations in Cover: Add border support using ResizableBox via BlockPopover #41153
- Refactor the Cover block to use this block support, both for consistency, and so that it can benefit from the improvements in controls (e.g. the added slider). This was suggested in this comment: Add a minHeight block support under dimensions #45300 (comment)
- Add support for height presets, similar to spacing presets, to allow easier access to good values for responsive design (e.g. clamped heights, etc) Add support for presets in minimum height fields #48810
Issues to (potentially) close out once these tasks are done
- Allow Group and Template Parts to be resized #28845 (the resizeable box + opt-in to template parts are the remaining tasks)
- Align footer to the bottom of the page when the page has no/little content #45117
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Feature] Design ToolsTools that impact the appearance of blocks both to expand the number of tools and improve the experiTools that impact the appearance of blocks both to expand the number of tools and improve the experi[Type] EnhancementA suggestion for improvement.A suggestion for improvement.