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

Icons affecting each other's colors #26

Open
BekzodIsakov opened this issue Feb 16, 2023 · 0 comments
Open

Icons affecting each other's colors #26

BekzodIsakov opened this issue Feb 16, 2023 · 0 comments

Comments

@BekzodIsakov
Copy link

When several icons are rendered on the same page, they are changing each other's colors. I think this is happening due to different icons using the same id values. I changed id values, and it fixed the problem.

Issue:
SVG-1: <defs> <linearGradient id='a'></linearGradient> <path fill='url(#a)'></path> </defs>
SVG-2: <defs> <linearGradient id='a'></linearGradient> <path fill='url(#a)'></path> </defs>

Fix:
SVG-2: <defs> <linearGradient id='a.1'></linearGradient> <path fill='url(#a.1)'></path> </defs>

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

1 participant