mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-27 01:46:02 +03:00
[GH-ISSUE #404] [Request] Consider using root elements with ID's #251
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#251
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 @SaphuA on GitHub (Nov 3, 2017).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/404
I am looking to include a library like this for a project where components are rendered with svg. One of the idea's is to import the flags as needed directly from their svg file. This could be done with the
useelement. Like so:https://stackoverflow.com/a/22996360/314447
However, this method requires the referenced file
sprites.svgto have a (root) element with an idicon-home.Is this something you'd consider adding? I wouldn't mind creating a pull request for it. It could be as simple as adding
id="flag"orid="xx"to all svg elements.Thanks!
@SaphuA commented on GitHub (Nov 6, 2017):
Went ahead and did it anyway. I wrote a little script that updates all the files so let me know if you need it in another format.
@lipis commented on GitHub (Nov 6, 2017):
fixed