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

Unique suffixes for items in defs sections of svg #1149

Merged
merged 5 commits into from
Oct 26, 2024

Conversation

pavelpykhtin
Copy link
Collaborator

@pavelpykhtin pavelpykhtin commented Oct 25, 2024

@davydkov , linearGradient is defined in defs section of svg and thus is scoped to the whole document rather than that particular image. Added fix with unique suffix to defs content.

I'm not quite happy with the implementation. It feels wrong to do that many changes at once. Do you have some kind of import script for icons? Probably fix could be applied there?

@davydkov
Copy link
Member

Hey @pavelpykhtin
Wow, great that you nailed the issue.

But these changes will be overwritten by npm run update-icons - right?

What if we utilise some plugin from svgo, like here

@davydkov davydkov linked an issue Oct 25, 2024 that may be closed by this pull request
@pavelpykhtin
Copy link
Collaborator Author

Totally missed that script! Thanks for pointing out!

Added prefixIds plugin into config.

Automated changes by
[create-pull-request](https://github.com/peter-evans/create-pull-request)
GitHub action

Co-authored-by: davydkov <[email protected]>
@davydkov davydkov enabled auto-merge (squash) October 26, 2024 22:13
@davydkov davydkov merged commit 410dede into main Oct 26, 2024
15 checks passed
@davydkov davydkov deleted the fix/1097-wrong-icon-colors branch October 26, 2024 22:28
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.

Bundled Azure icons vary in color scheme
2 participants