feathericons / feather

Simply beautiful open-source icons

Home Page:https://feathericons.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPM package does not support shadow DOM

jrtcppv opened this issue · comments

I am trying to use the feather.replace function in a custom element but because it selects elements from document it does not find anything to replace. Would it be possible to export feather.replaceElement as well as feather.replace so that I can replace the elements from a query on the shadow DOM?

I'm creating a Lit.js project and I'm having the same issue. We'd be glad to have feedback about how to solve it.

Trying to find a solution to use it with Lit I found this library that turns feather icons into web components that can be called anywhere after running the script, it solved my problem.