Skip to content

fix(theme-classic): restore color emoji presentation for DocCard category fallback#11990

Open
markselby9 wants to merge 1 commit intofacebook:mainfrom
markselby9:fix/11962-doccard-category-emoji
Open

fix(theme-classic): restore color emoji presentation for DocCard category fallback#11990
markselby9 wants to merge 1 commit intofacebook:mainfrom
markselby9:fix/11962-doccard-category-emoji

Conversation

@markselby9
Copy link
Copy Markdown

Summary

Restores color emoji presentation for the DocCard category icon fallback. PR #11734 (v3.10) rewrote the literal as '🗃' (just U+1F5C3 — Unicode default presentation is text), so on Win11 and many Linux setups it renders monochrome. The sibling '📄️' literal two lines below already includes U+FE0F — this PR matches that convention.

One-character fix: append U+FE0F to the literal at packages/docusaurus-theme-classic/src/theme/DocCard/index.tsx:30.

Test plan

  • prettier --check clean
  • Full theme-classic suite passes (no DocCard-specific tests/snapshots exist to update)
  • Verified codepoints: [0x1f5c3, 0xfe0f] after fix (matches sibling [0x1f4c4, 0xfe0f])
  • Other emoji literal in the same function ('🔗' U+1F517) checked — has Emoji_Presentation=True, doesn't need the fix

Fixes #11962

…gory fallback

The category fallback emoji literal `'🗃'` (U+1F5C3 CARD FILE BOX) was
introduced in facebook#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 facebook#11962
@meta-cla meta-cla Bot added the CLA Signed Signed Facebook CLA label May 6, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented May 6, 2026

[V2]

Built without sensitive environment variables

Name Link
🔨 Latest commit b4464ab
🔍 Latest deploy log https://app.netlify.com/projects/docusaurus-2/deploys/69fac2e1bc885f00085c72be
😎 Deploy Preview https://deploy-preview-11990--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DocCard category emoji fallback renders in text presentation

1 participant