razorpay / blade

Design System that powers Razorpay
https://blade.razorpay.com
MIT License
505 stars 138 forks source link

[Amount] : Support required for negative value in amount component #2314

Open PujanShah22 opened 3 months ago

PujanShah22 commented 3 months ago

https://razorpay.slack.com/archives/CMQ3RBHEU/p1721300485153729

saurabhdaware commented 3 months ago

Update: Currently even with fix for minus sign we're switching the positions of symbol. E.g.- -1000₹

But I checked with design and it should be this - -₹1000

As you're unblocked for now, we'll get it checked from i18nify team and implement the final state of -₹1000. If that's taking too long then we'll go with -1000₹ until then.

PujanShah22 commented 2 months ago

ack.

saurabhdaware commented 2 months ago

There are some v8 nodejs inconsistencies with browser in Intl library which makes amount output 2 different things in browser vs nodejs in below node 19 versions. Checking with the i18nify team on what can be done. You can continue to use your previous amount component meanwhile

https://razorpay.slack.com/archives/C05RBSKC6KD/p1723457565335889