Allow creation of a limited list of spacing options for spacing.units #34210
Labels
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
Getting custom padding, margin, and border controls in Gutenberg is great! But allowing any amount of spacing may be too flexible for some users.
What is your proposed solution?
Similar to the way font size options can be limited to a dropdown of options, having
spacing.units
intheme.json
support an array of values would allow us to create a curated list of spacing options for our less tech-savvy users.For instance, it would be great if
theme.json
supported something like this:Then, when adding custom padding to a block, these spaces would be dropdowns instead of normal inputs:
This would make things easier for our content specialists and clients who manage their own content, and want to have some more control over design without the confusion of various units and what they mean.
The text was updated successfully, but these errors were encountered: