-
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
Description
In #36186 it was noticed that some of the spacing units, in particular em and rem, are configured with a very small step value. This means that when you hold the 'up' or 'down' key to change spacing, em moves very slowly compared to px for example.
Here's a visual using the height of the Spacer block:
px-vs-em-step.mov
It's perhaps more noticeable on mobile, because the UnitControl has its own increment/decrement buttons:

The step value comes from the configuration here and was introduced in #32692.
Step-by-step reproduction instructions
- In the block editor, insert a block that supports some spacing value.
Coveris a good example, with itsminHeightattribute. - Adjust the value of the minHeight in the Inspector Controls, by clicking into the input and holding the up or down arrow key. On mobile use the up/down buttons.
- Try this with several different units, and notice that the
emandremincrement is noticeably smaller/slower.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
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.