mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 09:25:50 +03:00
[GH-ISSUE #486] viewBox instead of absolute width/height? #297
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#297
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 @s-h-a-d-o-w on GitHub (Sep 14, 2018).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/486
Is there a specific reason for specifying a fixed width/height?
It seems to me that everyone will resize the flags to whatever they need anyway. With the recommended CSS workflow, that's simple enough. But if you want to use the SVGs directly (personally, I'm using https://github.com/airbnb/babel-plugin-inline-react-svg ) it just won't work. At least not out of the box.
I tried it out with your demo page - changed the greek flag to only have a viewBox of 0 0 640 480 and everything still renders properly.
Personally, I only need a few flags anyway and am fine with manually editing them but it seems to me that it might be beneficial for the future in general if this was changed.
@lipis commented on GitHub (Sep 15, 2018):
#487