Add support for presets in minimum height fields #48810
Labels
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
Needs Design Feedback
Needs general design feedback.
[Type] Enhancement
A suggestion for improvement.
The cover block has long supported entering custom minimum height values, and support was just added to the group and post content blocks: https://make.wordpress.org/core/2023/03/06/minimum-height-dimensions-block-support/
However, entering in a simple custom value rarely works well for responsive web design.
vh
units can work decently, but the field defaults topx
and the particulars of the different CSS unit options are not easy for content editors to understand. On top of that, you really need to be able to usemin
,max
andclamp
values for a great responsive design.To address that, the editor should support registering custom presets for the height field. The default editing experience should have the user pick from a list of presets with an option to enter a custom value, and themes should be able to disable entry of custom values. This would make the height field work exactly like spacing fields.
This could also replace the "Toggle full height" button that switches the cover block to full height since "full" could be one of the presets.
The text was updated successfully, but these errors were encountered: