Skip to content

Render a monogram fallback for unknown icon names#1412

Draft
bpapillon wants to merge 1 commit into
mainfrom
improve-missing-icon-fallback
Draft

Render a monogram fallback for unknown icon names#1412
bpapillon wants to merge 1 commit into
mainfrom
improve-missing-icon-fallback

Conversation

@bpapillon

@bpapillon bpapillon commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

When an icon name isn't in the bundled icon set, Icon rendered the raw slug as text, which overflows the icon box.

Here, we change this fallback behavior so that emoji pass through unchanged (as before) but non-emoji unknown named slugs render an uppercased first-letter monogram, so it fits better in the icon box.

When an icon name isn't in the bundled icon set (commonly because the
icon was added to schematic-icons after this build of
schematic-components), Icon rendered the raw slug as text, which
overflows the icon box. Detect emoji and pass them through unchanged;
for unknown named slugs, render an uppercased first-letter monogram,
keep the full name in the title attribute, and warn once per name.
@github-actions

Copy link
Copy Markdown

🚀 Components Preview Deployed!

📍 Preview URL: https://schematic-next-example-6iijx4o2q-schematichq.vercel.app
🔄 Components Version: Built from commit ad252c0
📦 Demo App: schematichq/schematic-next-example

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.

1 participant