Paste is unable to render number emojis in text #3323
-
As part of an investigation on a customer reported issue, we found that our chat components are unable to render number emojis like 1️⃣ properly, Here's a screenshot of how it looks on the UI: This component inherits the global fonts from the paste theme as they're defined here. Here's a codesandbox reproduction for the same - https://codesandbox.io/s/kind-microservice-ldh9nw?file=/src/index.tsx In our investigation, we found out that this happens on the "Inter var" font that paste has chosen to be the default for text, and overriding our component's font to be "Open Sans" or "Twilio Sans" fixes this issue. Please guide us on what a solution for this would be. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Hmm it looks like our main font-stack doesn't fall-back to something that supports it, but our code font-stack does. You can do something like this for the time being, as we investigate our font-stack: https://codesandbox.io/s/upbeat-butterfly-lhvy96?file=/src/index.tsx |
Beta Was this translation helpful? Give feedback.
Hi @oscar8880,
This fix will land in Paste 19.6.0, which supports React 18 and is backwards compatible with previous versions of React too.
If that isn't something you can apply, you can instead follow the instructions on our docs where we recommend loading the fonts in your apps but change the second link to: