Skip to content

Replace flag images with emoji #1787

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2018
Merged

Replace flag images with emoji #1787

merged 1 commit into from
Apr 18, 2018

Conversation

lencioni
Copy link
Contributor

We can use emoji for most of these flags, which should make
them look better on higher resolution displays and improve the
loading performance of the style guide a little.

The only flag we have here that does not have a good emoji yet
is the flag of Catalonia, which I left as-is for now.

https://emojipedia.org/flag-for-catalonia-esct/

We can use emoji for most of these flags, which should make
them look better on higher resolution displays and improve the
loading performance of the style guide a little.

The only flag we have here that does not have a good emoji yet
is the flag of Catalonia, which I left as-is for now.

https://emojipedia.org/flag-for-catalonia-esct/
@ljharb
Copy link
Collaborator

ljharb commented Apr 18, 2018

Does Github handle rendering these properly on browsers and devices that lack proper emoji support?

@lencioni
Copy link
Contributor Author

Looking at the source code in my inspector, it looks like it probably does. Here's what it renders for the Brazil flag:

<g-emoji class="g-emoji" alias="brazil" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f1e7-1f1f7.png">🇧🇷</g-emoji>

@lencioni lencioni merged commit 89bb98e into master Apr 18, 2018
@lencioni lencioni deleted the lencioni-patch-2 branch April 18, 2018 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants