Skip to content

Conversation

@wavebeem
Copy link
Contributor

@wavebeem wavebeem commented Dec 1, 2025

Description

The .append method of elements takes plain text, not HTML. This updates the code to use .insertAdjacentHTML instead.

Before Submitting

The .append method of elements takes plain text, not HTML. This updates the code to use .insertAdjacentHTML instead.
@github-actions github-actions bot added the 🌍 site Has to do something with the Lucide website label Dec 1, 2025
@wavebeem
Copy link
Contributor Author

wavebeem commented Dec 9, 2025

Updated per code review feedback 🙏🏻

Copy link
Member

@karsa-mistmere karsa-mistmere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated per code review feedback 🙏🏻

Thanks! I also updated the non-lab code sample to use the same logic, from my part this is now good to go.

@ericfennis ericfennis merged commit fd31cb4 into lucide-icons:main Dec 10, 2025
3 checks passed
karsa-mistmere added a commit that referenced this pull request Dec 12, 2025
* Fix code sample for vanilla JS

The .append method of elements takes plain text, not HTML. This updates the code to use .insertAdjacentHTML instead.

* Update createLabCodeExamples.ts

* fix(site): update createCodeExamples.ts vanilla JS code example

* Update createLabCodeExamples.ts

* Update createCodeExamples.ts

* Update createCodeExamples.ts

---------

Co-authored-by: Karsa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🌍 site Has to do something with the Lucide website

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants