[GH-ISSUE #1075] Small error in us.svg #506

Closed
opened 2026-03-03 14:38:53 +03:00 by kerem · 3 comments
Owner

Originally created by @andreascaesar on GitHub (Jan 19, 2023).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/1075

Originally assigned to: @NotTsunami on GitHub.

The us.svg is larger than the viewBox as you can see when opened in for example Inkscape:
us

This is a problem for us since we dynamically are adding a border around the svg, we actually loads the svg and adds a group and a background rect, also resizing the viewbox (alters the actual svg xml). All other solutions for adding borders have failed for us, but doing this with background makes perfect svg with border except for the us flag where the fake right border will be gone...

Originally created by @andreascaesar on GitHub (Jan 19, 2023). Original GitHub issue: https://github.com/lipis/flag-icons/issues/1075 Originally assigned to: @NotTsunami on GitHub. The us.svg is larger than the viewBox as you can see when opened in for example Inkscape: ![us](https://user-images.githubusercontent.com/8454845/213379786-0748bbea-a668-446c-ba5c-9aeff19a883a.png) This is a problem for us since we dynamically are adding a border around the svg, we actually loads the svg and adds a group and a background rect, also resizing the viewbox (alters the actual svg xml). All other solutions for adding borders have failed for us, but doing this with background makes perfect svg with border except for the us flag where the fake right border will be gone...
kerem 2026-03-03 14:38:53 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@NotTsunami commented on GitHub (Jan 19, 2023):

Thanks for the report, will try to squeeze this in before the weekend.

As a small note, I think there are some other flags this is applicable to, is this the only one you have run into issues with?

<!-- gh-comment-id:1396637448 --> @NotTsunami commented on GitHub (Jan 19, 2023): Thanks for the report, will try to squeeze this in before the weekend. As a small note, I think there are some other flags this is applicable to, is this the only one you have run into issues with?
Author
Owner

@andreascaesar commented on GitHub (Jan 23, 2023):

I havn't found this issue with any other flag.

<!-- gh-comment-id:1399889712 --> @andreascaesar commented on GitHub (Jan 23, 2023): I havn't found this issue with any other flag.
Author
Owner

@NotTsunami commented on GitHub (Jan 26, 2023):

I very briefly looked at this over the weekend, it's pretty funny in that it is just a larger flag on a smaller canvas. Need to scale it down properly, working on this next.

<!-- gh-comment-id:1404695214 --> @NotTsunami commented on GitHub (Jan 26, 2023): I very briefly looked at this over the weekend, it's pretty funny in that it is just a larger flag on a smaller canvas. Need to scale it down properly, working on this next.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flag-icons#506
No description provided.