-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Spacing Units: Tweak step values #37620
Copy link
Copy link
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.
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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
In #36186 it was noticed that some of the spacing units, in particular
emandrem, are configured with a very small step value. This means that when you hold the 'up' or 'down' key to change spacing,emmoves very slowly compared topxfor 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

UnitControlhas its own increment/decrement buttons:The step value comes from the configuration here and was introduced in #32692.
Step-by-step reproduction instructions
Coveris a good example, with itsminHeightattribute.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