figma-plugin icon indicating copy to clipboard operation
figma-plugin copied to clipboard

Opacity issue: some values are wrongly rounded in Figma

Open UdayHyma opened this issue 2 years ago • 2 comments

Is your feature request related to a problem ? Please describe. When you apply an opacity value to a token the value is rounded in some cases: Value: 0.1% > rounded to 1% in Figma Value: 0.01% > rounded to 1% in Figma Value: 0.0001 (without a unit specified) > rounded to 0% Value 0.001 does work properly and reflects as 0.01% in Figma.

Describe the solution you’d like Value: 0.1% > should resolve as 0.1% in Figma Value: 0.01% > should resolve as 0.01% in Figma Value: 0.0001 (without a unit specified) > should resolve as 0.01% in Figma

Describe alternatives you've considered The opacity value can be set to 0.1% by expressing the value in the form of a decimal value (0.001)

Additional context image image image

Value 0.001 does work properly and reflects as 0.01% in Figma. image

UdayHyma avatar Nov 20 '23 08:11 UdayHyma

@SamIam4Hyma @six7 This issue still persists in 2.0 rc9

UdayHyma avatar Jul 23 '24 08:07 UdayHyma

Faceit same problem. in my case to achieve Figma's 0.01% i must input 0.0001% in TS which is not very obvious

leemlller avatar Oct 17 '24 09:10 leemlller