You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-03-26] [$500] [Hold for payment 2024-02-22] Web - Most of the flag icons are replaced by country codes #33653
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.EngineeringExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Version Number: 1.4.18.1 Reproducible in staging?: y Reproducible in production?: n If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Please re-state the problem that we are trying to solve in this issue.
Flag icons are not accessible on windows.
What is the root cause of that problem?
We are encountering an issue where flag icons are not rendered correctly on Windows platforms within the application. This problem affects the accessibility and visual consistency of the UI.
To address the root cause, let's delve into the process of how browsers handle fonts, particularly for rendering emojis.
Consider a simple text element <Text>Hello</Text> styled with a font, say FontBetaX, as follows:
And we need the app to use FontBetaX (just as an example). We do in styling this line:
font-family: FontBetaX;
The browser's rendering process is two-fold:
Font Loading: It checks if FontBetaX is loaded from the server:
font-family: ExpensifyNeue-Regular,"Windows Segoe UI Emoji","Noto Color Emoji";
Here’s the process the browser follows:
The browser will check if the ExpensifyNeue-Regular font is loaded from the app server (Yes it is)
The browser will check if the font ExpensifyNeue-Regular support the emoji (No the font doesn't support the emoji).
The browser will move to the next font, Segoe UI Emoji, and check if it's imported from the server (No, we don't import this font)
The browser will check if the system has this font (Yes, windows has by default the Segoe family font)
The browser then will use this font the render the emoji (This cause the issue because Segoe render flags as characters)
In contrast, on Ubuntu, none of the fonts are supported by default, resulting in emojis not displaying correctly, as shown in the attached screenshot from Ubuntu.
The core issue lies in our reliance on default system fonts for emoji rendering, which varies across platforms:
Android uses Noto Color Emoji iOS
macOS use Apple Color Emoji
Windows and use Segoe UI Emoji
A more robust approach is to serve a consistent emoji font from our server, as we do with ExpensifyNeue-Regular.
What changes do you think we should make in order to solve the problem?
To resolve this on Windows, we should serve a universally compatible emoji font from our server. I suggest Noto Color Emoji (already in use on Android devices). The implementation steps are:
Apply the Noto Color Emoji font on Emojies on Windows and not Windows Segoe UI Emoji by changing the order of the fonts in the style.
font-family: ExpensifyNeue-Regular,"Noto Color Emoji";
What alternative solutions did you explore? (Optional)
We observed that the Expensify app currently renders emojis differently across platforms, as demonstrated in the attached screenshot comparing Windows and Android emojis.
An alternative approach would be to standardize the emoji style across all platforms, akin to platforms like Slack. This would enhance consistency in our user experience.
Yep. I think we should just revert this and leave the "broken" flag emojis on window.
If people feel passionate that it should work, then we should make it only load for windows users AND reduce the size of the font (maybe by removing all emojis that are not flags?)
changed the title [-][$500] [Hold for payment 2024-02-22] Web - Most of the flag icons are replaced by country codes[/-][+][HOLD for payment 2024-03-26] [$500] [Hold for payment 2024-02-22] Web - Most of the flag icons are replaced by country codes[/+]on Mar 19, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.54-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
[@aimane-chnaif] The PR that introduced the bug has been identified. Link to the PR:
[@aimane-chnaif] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[@aimane-chnaif] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[@aimane-chnaif] Determine if we should create a regression test for this bug.
[@aimane-chnaif] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
[@kadiealexander] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.EngineeringExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2
Activity
github-actions commentedon Dec 27, 2023
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
melvin-bot commentedon Dec 27, 2023
Triggered auto assignment to @deetergp (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.abzokhattab commentedon Dec 27, 2023
I cannot reproduce it:

deetergp commentedon Dec 27, 2023
I am also not seeing this. Don't think it's a blocker.

dragnoir commentedon Dec 28, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Flag icons are not accessible on windows.
What is the root cause of that problem?
We are encountering an issue where flag icons are not rendered correctly on Windows platforms within the application. This problem affects the accessibility and visual consistency of the UI.
To address the root cause, let's delve into the process of how browsers handle fonts, particularly for rendering emojis.
Consider a simple text element
<Text>Hello</Text>styled with a font, sayFontBetaX, as follows:And we need the app to use FontBetaX (just as an example). We do in styling this line:
The browser's rendering process is two-fold:
FontBetaXis loaded from the server:In the context of our app, specifically for emojis, the font styling is defined as:
and then we use it in styling of the components
App/src/styles/index.ts
Line 220 in 85fee5a
On the browser, this translates to:
Here’s the process the browser follows:
ExpensifyNeue-Regularfont is loaded from the app server (Yes it is)ExpensifyNeue-Regularsupport the emoji (No the font doesn't support the emoji).Segoe UI Emoji, and check if it's imported from the server (No, we don't import this font)In contrast, on Ubuntu, none of the fonts are supported by default, resulting in emojis not displaying correctly, as shown in the attached screenshot from Ubuntu.

The core issue lies in our reliance on default system fonts for emoji rendering, which varies across platforms:
A more robust approach is to serve a consistent emoji font from our server, as we do with
ExpensifyNeue-Regular.What changes do you think we should make in order to solve the problem?
To resolve this on Windows, we should serve a universally compatible emoji font from our server. I suggest
Noto Color Emoji(already in use on Android devices). The implementation steps are:/assets/fonts/webNoto Color Emojifont on Emojies on Windows and notWindows Segoe UI Emojiby changing the order of the fonts in the style.What alternative solutions did you explore? (Optional)
We observed that the Expensify app currently renders emojis differently across platforms, as demonstrated in the attached screenshot comparing Windows and Android emojis.
An alternative approach would be to standardize the emoji style across all platforms, akin to platforms like Slack. This would enhance consistency in our user experience.
dragnoir commentedon Dec 28, 2023
@deetergp the issue is only on Windows
mountiny commentedon Dec 28, 2023
I think this was expected, and its known that on windows the flag emojis are not working perfectly.
it would be great to avoid any kind of workarounds if we want to fix this
aimane-chnaif commentedon Dec 28, 2023
I think this can be closed. If this should be fixed, original contributors in #31717 should handle this as follow-up as they enabled this feature.
74 remaining items
iwiznia commentedon Mar 15, 2024
Yep. I think we should just revert this and leave the "broken" flag emojis on window.
If people feel passionate that it should work, then we should make it only load for windows users AND reduce the size of the font (maybe by removing all emojis that are not flags?)
dragnoir commentedon Mar 15, 2024
@iwiznia another issue to consider is:
iwiznia commentedon Mar 15, 2024
Yes, I know, windows users will use the flag icons that windows has, which apparently is just initials of the place.
[-][$500] [Hold for payment 2024-02-22] Web - Most of the flag icons are replaced by country codes[/-][+][HOLD for payment 2024-03-26] [$500] [Hold for payment 2024-02-22] Web - Most of the flag icons are replaced by country codes[/+]melvin-bot commentedon Mar 19, 2024
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Mar 19, 2024
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.54-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-03-26. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Mar 19, 2024
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed: