Archived topic
Incorrect conversion of float numbers in last update
3 replies · Started by MC on July 18, 2022
Hi,
I use a French web browser and in French, float numbers have a comma instead of a full stop character.
The problem is that since I upgraded the last update of GeneratePress, when I edit a number (for instance, opacity) in Gutenberg, I can enter 0.30 but it reverts to 0,30. Which causes the CSS rule to fail.
Can you please fix this issue because it's a big problem!
Thank you.
Hi there,
where specifically are you entering these values ? Can you share a screenshot ?
Hi,
Sure, here are some screenshots to explain:

When I enter 0.31, it works:

until I hit "Update". It reverts back to 0,31:

And in Developer Tools, the CSS rule is invalid:

I hope this will be enough for you to reproduce the issue.
Does this only happen in the editor?
What happens if you add a value like that to some CSS in the Customizer > Additional CSS ?