Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The spacing (padding) tool for buttons does not accept numbers with decimal places as units #28035

Closed
chvillanuevap opened this issue Jan 7, 2021 · 1 comment
Labels
Good First Issue An issue that's suitable for someone looking to contribute for the first time [Package] Components /packages/components [Type] Enhancement A suggestion for improvement.

Comments

@chvillanuevap
Copy link

chvillanuevap commented Jan 7, 2021

Describe the bug
I want to use a padding of 0.5em for a group block.

To reproduce
Steps to reproduce the behavior:

  1. Add a Group core block.
  2. Add theme support for custom spacing, including the "em" unit.
  3. Add a spacing value with a decimal point to the Group block (i.e. 0.5em, 0.25em).
  4. The value is rounded up to an integer.

Expected behavior
I can see the point of rounding up pixels, but em's should stay in the decimal value.

Editor version (please complete the following information):

  • WordPress version: 5.6
  • Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? Plugin
  • If the Gutenberg plugin is installed, which version is it? 9.6.2

Additional context

@talldan talldan added [Package] Components /packages/components [Type] Enhancement A suggestion for improvement. Good First Issue An issue that's suitable for someone looking to contribute for the first time labels Jan 7, 2021
@skorasaurus
Copy link
Member

Hi,

Thanks for reporting; I'm closing this because there's a similar issue that's a little more broader in scope that's also actionable and you can follow that issue to follow its progress - #31964

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue An issue that's suitable for someone looking to contribute for the first time [Package] Components /packages/components [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants