Skip to content

Commit

Permalink
Use system default flag emoji by default
Browse files Browse the repository at this point in the history
  • Loading branch information
andychow326 committed Sep 12, 2024
1 parent 7fb0479 commit 52a1338
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions authui/src/authflowv2/icons/twemoji-countries.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,26 @@
unicode-range: U+1F1E6-1F1FF;
font-style: normal;
font-weight: 400;
font-display: swap;
src: url("./Twemoji.Mozilla-subset.woff2") format("woff2"),
url("./Twemoji.Mozilla-subset.ttf") format("truetype");
}

.twemoji-countries {
font-family: "twemoji-countries";
/*
There are several issues happening with different versions of iOS safari browsers
so we reference the font-family from GitHub to workaround this problem.
GitHub is using the following font-family:
`-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"`
Also added "Noto Color Emoji" for Android and "twemoji-countries" for our defined font-face */
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Noto Color Emoji", "twemoji-countries";
font-weight: 400;
font-style: normal;
font-size: 24px;
display: inline-block;
line-height: 1;
text-transform: none;
Expand All @@ -31,16 +42,3 @@
/* Support for IE. */
font-feature-settings: "liga";
}

@supports (-webkit-appearance: none) and (stroke-color: transparent) {
@font-face {
font-family: "twemoji-countries";
src: url("./twemoji-color-subset.woff2") format("woff2"),
url("./twemoji-color-subset.ttf") format("truetype");
}

.twemoji-countries {
position: relative;
bottom: 0.2rem;
}
}

0 comments on commit 52a1338

Please sign in to comment.