From b4464abcdf510951741375856f90408b833dfb18 Mon Sep 17 00:00:00 2001 From: Mark Feng Date: Wed, 6 May 2026 11:26:46 +0800 Subject: [PATCH] fix(theme-classic): restore color emoji presentation for DocCard category fallback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The category fallback emoji literal `'🗃'` (U+1F5C3 CARD FILE BOX) was introduced in #11734 without a U+FE0F variation selector. On platforms whose default presentation for this codepoint is text (notably Windows 11 and many Linux distributions), the glyph renders monochrome instead of the intended color emoji. Append U+FE0F to force emoji presentation, matching the convention already used by the sibling `'📄️'` literal on the next line. Closes #11962 --- packages/docusaurus-theme-classic/src/theme/DocCard/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus-theme-classic/src/theme/DocCard/index.tsx b/packages/docusaurus-theme-classic/src/theme/DocCard/index.tsx index 643e0063dff6..f41e9aac614a 100644 --- a/packages/docusaurus-theme-classic/src/theme/DocCard/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/DocCard/index.tsx @@ -27,7 +27,7 @@ function getFallbackEmojiIcon( item: PropSidebarItemLink | PropSidebarItemCategory, ): string { if (item.type === 'category') { - return '🗃'; + return '🗃️'; } return isInternalUrl(item.href) ? '📄️' : '🔗'; }