Add Decimal Comma Support
Alexander Altenhof
Please add decimal comma support. Right now if you enter "40,5" into an input field, it jumps back to the original value. Only the decimal point is working.
At least "40,5" should be accepted as correct input and automatically converted to "40.5"
Most European and South American countries are using the comma as a separator (see map).
Alexander Altenhof
^Since I cannot edit the original request: There should always 1 decimal character shown in the UI - never , and . mixed. I see now, that the picture can be misunderstood.
Alexander Altenhof
Decimal character conversion in Figma
P
Philipp Nürnberg
I think the origin of supporting the dot is because that is how it's often working in code like Javascript. And tools like Figma and ProtoPie decided to visually support the dot, while Sketch and Photoshop visually support the comma only.
Supporting one of both is fine, but personally I wouldn't like to have a zoo of decimal signs. Maybe having the option in the settings to show comma or dot and based on that the user see a dot or comma.
What do others think?
Alexander Altenhof
Philipp Nürnberg: When your first idea of a decimal support in a tool is a "zoo" you may have misunderstood the idea or I didn't make myself clear :)
There is always 1 decimal character shown in the UI - never , and . mixed.
There are two basic concepts when we talk about decimal characters in tools:
1) The decimal character that is used in the tool is based on your system's language/country settings. (not the case with Protopie where it seems to be hardcoded). Tools like Adobe Illustrator and Photoshop are based on that.
2) The decimal character is converted automatically after pressing Enter or Focus-Out. Tools like Figma or Webflow (cf. GIF) are using that.
It's a about convenience and improving the UX of the tool. It is correct, that the final code is using the . (dot), but these kind of conversions are typical, especially for color values. Dots are not used as decimal characters in Germany, France, Italy, Spain, Poland, Czechia etc. The learnt behavior of entering a decimal comma will create a UX pain point for the people of these countries.
P
Philipp Nürnberg
Alexander Altenhof: Then I misunderstood your idea, sry. I thought you would like to show dots and commas in the design at the same time. Away from the technical aspect.