Skip to content

Commit e12a0c4

Browse files
authored
fix(article-footer): show red heart emoji in Chrome/Edge (#10677)
Due to a compatibility issue with the Inter font in Chromium, the red heart emoji was displayed in black.
1 parent 7b815ba commit e12a0c4

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Diff for: client/src/document/organisms/article-footer/index.scss

+5
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,10 @@
101101
margin-bottom: 0;
102102
margin-top: 2rem;
103103
}
104+
105+
.emoji {
106+
// Ensure emojis are shown in color.
107+
font-family: initial;
108+
}
104109
}
105110
}

Diff for: client/src/document/organisms/article-footer/index.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ export function ArticleFooter({ doc, locale }) {
121121
</div>
122122
</>
123123
) : (
124-
<span className="thank-you">Thank you for your feedback! ❤️</span>
124+
<span className="thank-you">
125+
Thank you for your feedback! <span className="emoji">❤️</span>
126+
</span>
125127
)}
126128
</fieldset>
127129

0 commit comments

Comments
 (0)