mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 01:15:55 +03:00
[GH-ISSUE #1045] Non unique ids cause rendering collisions when svgs are inlined #492
Labels
No labels
3rd-party
3rd-party
bug
code
documentation
enhancement
fixed-in-master
flag-request
help needed
missing-flag
missing-flag
pull-request
wrong-flag
wrong-flag
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flag-icons#492
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vovayatsyuk on GitHub (Oct 18, 2022).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/1045
Some flags are corrupted when SVG icons are inlined into the page HTML.
Codepen: https://codepen.io/vovayatsyuk/pen/eYrPXgW?editors=1000
Screenshot:
Possible solution
Use unique ids to prevent collisions. I've already done that in my laravel package
If you are interested in this change I'll open PR with updated icons.
@lipis commented on GitHub (Oct 19, 2022):
What kind of change is required.. I think we have unique ids everywhere.
@vovayatsyuk commented on GitHub (Oct 19, 2022):
Here is an example for ag.svg:
@vovayatsyuk commented on GitHub (Oct 19, 2022):
Here is a script I used to update flags: https://github.com/agatanga/flags/issues/2#issuecomment-1282828743
@NotTsunami commented on GitHub (Dec 21, 2022):
@lipis That was reverted in #1009, perhaps unintentionally?
@kt-jet commented on GitHub (Jun 19, 2023):
We are running into the same problem. Non-unique ids mess up the flags if you show more than one. A fix would be much appreciated.