Gutenberg: Spacer height input steps in 10 not 1

Created on 7 May 2020  路  3Comments  路  Source: WordPress/gutenberg

Describe the bug
The spacer block height input steps in 10, why should the user be limited in increments of 10? What if they wanted a spacer that was 15px?

To reproduce
Steps to reproduce the behavior:

  1. Add a spacer block
  2. Use up/down arrows on number input
  3. Notice it steps in increments of 10

Expected behavior
Steps of 1 to allow any height to be entered.

Editor version (please complete the following information):

  • WordPress version: 5.4.1
  • Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? Default
Needs Design Feedback [Block] Spacer [Status] In Progress [Type] Bug

Most helpful comment

I'm really curious as to why it is in increments of 10 as well. I'm going to spin up a quick PR to resolve this in the meantime.

All 3 comments

I've labeled as a bug, but it'd be good to get some design feedback on how exactly this should work.

I've also noticed this has a minimum value allowed of 20 applied - it's really limiting.

I'm really curious as to why it is in increments of 10 as well. I'm going to spin up a quick PR to resolve this in the meantime.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hedgefield picture hedgefield  路  3Comments

aduth picture aduth  路  3Comments

wpalchemist picture wpalchemist  路  3Comments

mhenrylucero picture mhenrylucero  路  3Comments

franz-josef-kaiser picture franz-josef-kaiser  路  3Comments