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

Remove id attributes when disableShadowDOM="true" #236

Open
tomasdev opened this issue Jan 17, 2024 · 5 comments
Open

Remove id attributes when disableShadowDOM="true" #236

tomasdev opened this issue Jan 17, 2024 · 5 comments

Comments

@tomasdev
Copy link

Using multiple players end up creating DOM with repeated IDs: "#animation" and "#animation-container" -- these could be replaced with classes instead.

I am not sure of the implications when using Shadow DOM.

@samuelOsborne
Copy link
Member

hi @tomasdev whats your use case for not having shadowDOM enabled?

@tomasdev
Copy link
Author

tomasdev commented Jan 17, 2024

Colorizing the paths using CSS (single color Lottie files) -- icons animations.

In addition, not using Shadow DOM makes the controls not show up when controls="true"

@tomasdev
Copy link
Author

I think (untested) we could colorize the paths if the SVG was slotted when using Shadow DOM.

@samuelOsborne
Copy link
Member

the problem with repeating ids shouldnt be an issue though no? As its inside the shadow dom they dont conflict

@tomasdev
Copy link
Author

tomasdev commented Jan 18, 2024 via email

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

No branches or pull requests

2 participants