Skip to content

fix: drop the dead font-awesome CodePen stylesheet - #275

Merged
limonte merged 1 commit into
mainfrom
fix-dead-codepen-fa
Aug 5, 2026
Merged

fix: drop the dead font-awesome CodePen stylesheet#275
limonte merged 1 commit into
mainfrom
fix-dead-codepen-fa

Conversation

@limonte

@limonte limonte commented Aug 5, 2026

Copy link
Copy Markdown
Member

Leftover from #271.

That PR changed the customHtml example's buttons from fa-thumbs-up / fa-thumbs-down to emoji, but left codepenCssExternal on the matching <CodeExample> pointing at font-awesome. So "Edit in CodePen" still injected a stylesheet the pen no longer used.

-          <CodeExample
-            code={examples.customHtml.fnString}
-            codepenCssExternal="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css"
-          />
+          <CodeExample code={examples.customHtml.fnString} />

The other two codepenCssExternal values stay, since their pens genuinely need them: animate.css for the customAnimation example (bundling it in #270 covers this site, not an exported pen) and bootstrap4-buttons.css for the bootstrap example.

Verified: 0 font-awesome references remain in the JS bundle; both other external stylesheets are still emitted. bun run lint and bun run build pass.

🤖 Generated with Claude Code

#271 changed the customHtml example's buttons from fa-thumbs-up /
fa-thumbs-down to emoji, but left codepenCssExternal pointing at
font-awesome, so "Edit in CodePen" still injected a stylesheet nothing
used.

The other two codepenCssExternal values stay: animate.css is still
needed by the customAnimation example's pen, and bootstrap4-buttons.css
by the bootstrap example's.

No font-awesome reference remains in the JS bundle.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@limonte
limonte merged commit c557adf into main Aug 5, 2026
1 check passed
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