mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 09:25:50 +03:00
[GH-ISSUE #493] Issue with some flags. Spain, Saudi Arabia, Peru, Mexico #299
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#299
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 @ghost on GitHub (Sep 28, 2018).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/493
I have some issue: Some flags are not displayed after angular 6 build, for example the flag of spain. I looked css for Spain and Finland flags, and i found that they have a different background style.
For Span:
background-image: url(es.svg);For Finland and other:
background-image: url(data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%2…ill%3D%22%23003580%22 d%3D%22M175.5 0h130.9v480h-131z%22%2F%3E%3C%2Fsvg%3E);I have found trouble with Spain, Saudi Arabia, Mexico, Peru.
What can i do for fix Spain flag visible?
@lipis commented on GitHub (Oct 3, 2018):
I have no idea what you are talking about... :)
@ghost commented on GitHub (Oct 3, 2018):
I have no idea what you are talking about... :) - its universal answer for all questions.
@ronchalant commented on GitHub (Nov 13, 2019):
Digging this up, because I was having the same issue.
In my case at least, I was using url-loader in webpack to serve up (among other things) svgs.
The style tag that contains the flag icons has a url reference to the SVG for Spain, but for most other nations the SVG is inline:
When I looked at my configuration, my boilerplate url-loader had a limit of 10000 set:
I had a hunch that the svg for Spain might be particularly large, and when I looked it was among the largest at 89k. When I bumped the above number up to 100000, my Spain flags started rendering.
Just posting this in case @ddimass or anyone else has a similar issue.
@ghost commented on GitHub (Nov 13, 2019):
Thank you for response. You right its because Spain flag is more than 10000 bytes. In new version of Angular there is no inline svg anymore. Now i use svg sprites.