Spacer Block: Update UI to support editing complex height & width #37303
Labels
[Block] Spacer
Affects the Spacer Block
[Feature] Design Tools
Tools that impact the appearance of blocks both to expand the number of tools and improve the experi
Needs Design
Needs design efforts.
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
#36186 adds custom units to the Spacer block. Because the
height
andwidth
attributes are now strings, it is also possible to set complex values for these attributes, for example:This is only possible in the block editor by editing the values in the Code Editor, as the UI is a simple UnitControl that doesn't support complex values. If a block has a complex val for
height
for example, the input appears empty.It would be useful to have a way to see the value and edit it through the UI.
What is your proposed solution?
I'd love to get some design feedback on this. The simplest example would be to update the
UnitControl
with an edit toggle that can open a text field for entering custom values.The text was updated successfully, but these errors were encountered: