Skip to content
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

fix(article-footer): show red heart emoji in Chrome/Edge #10677

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

caugner
Copy link
Contributor

@caugner caugner commented Mar 11, 2024

Summary

(MP-927)

Problem

The heart emoji in the article footer (when submitting feedback) is shown in black in Chrome/Edge, because there seems to be a compatibility issue affecting the Inter fonts in Chromium.

Solution

Avoid the Inter font for the emoji by wrapping it in a <span> and using the browser's default font.


Screenshots

(Chrome:)

Before

image

After

image

How did you test this change?

Ran yarn dev, then opened http://localhost:3000/en-US/docs/Web#developer_tools_documentation in Chrome 122.

Due to a compatibility issue with the Inter font in Chromium,
the red heart emoji was displayed in black.
@caugner caugner requested a review from a team as a code owner March 11, 2024 12:01
@fiji-flo fiji-flo merged commit e12a0c4 into main Mar 14, 2024
14 checks passed
@fiji-flo fiji-flo deleted the fix-emoji-color-in-chrome-and-edge branch March 14, 2024 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants