Skip to content

emoji: Properly scale custom emoji in headings and titles

Toon Claes requested to merge toon-fix-custom-emoji-size into master

Custom emoji did have a fixed pixel based size (i.e. width & height). This makes them not properly scale in headings (h1, h2, etc.)

While at it I noticed custom emoji were not supported in titles. Because this MR is making sure proper scaling happens on headings, I'm including the support of custom emoji in titles here as well. This ensures scaling also works properly on titles.

Switch this sizing to use em's so it scales with the surrounding text.

Before After
Screenshot_2023-07-13_at_17-51-36_Dismiss_Cipher_label__Echo_with_one_no_integrity_partyparrot___41____Issues___Gitlab_Org___Gitlab_Test___GitLab Screenshot_2023-07-13_at_17-49-10_Dismiss_Cipher_label__Echo_with_one_no_integrity_partyparrot___41____Issues___Gitlab_Org___Gitlab_Test___GitLab

Issue: #381903 (closed) Label: group::project management Label: bug::functional Milestone: 16.2

Edited by Toon Claes

Merge request reports