Inability to set decimal values for spacing

After trying to add a decimal padding value (for example 1.5 REM or 0.75 REM), the editor doesn’t seem respond to that change at all, resulting in a 0 padding value.

Demonstration video:
https://www.awesomescreenshot.com/video/9115835?key=0c5f8629948cf05d3a392a6bca386b09

Environment info

  • WordPress version: 6.0
  • Gutenberg Plugin version: -
  • Cwicly Plugin version: 1.1.5.1
  • Cwicly Theme version: 1.0.3

Hi @Dev.tomi,

Thanks for the screencast and details, really appreciated!

This is the difficulty in how we deal with values. As you may have noticed, you can input all types of values with Cwicly (whether 15px, 15, calc() etc…) without having to select the unit. Try typing 30.5em inside the input value and you will see that it will be applied correctly.

But the point you bring up is valid. I’ll look into adding a condition for decimal values so that it automatically applies the unit in this specific case.

Oh I didn’t know we can also type a unit value inside a value box itself. You’re right, it does work that way. Thank you.

There should be an improvement with decimal values in 1.1.5.2.
Thanks for bringing this up @Dev.tomi.

You’re fast! Thank you