Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential compatibility with shadow DOM #2083

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

unit-404
Copy link

@unit-404 unit-404 commented Apr 18, 2024

When using custom elements, needs to create icons again when inside of shadow DOM. Shadow DOM invisible from document selectors, so can't be replaced directly. There is no new any icon.

What is the purpose of this pull request?

  • New Icon
  • Bug fix
  • New Feature
  • Documentation update
  • Other:

Description

Adds rootElement field for createIcons (default, is document).

Before Submitting

When using custom elements, needs to create icons again when inside of shadow DOM. Shadow DOM invisible from document selectors, so can't be replaced directly.
@ericfennis
Copy link
Member

@unit-404 Cool idea!
Did you already get it working?

Maybe we can also test this with libraries like Lit.

@unit-404
Copy link
Author

About get working, I did it in separate code (re-wrap). I.e. re-created that function.

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.

None yet

2 participants