country-flag-icons
country-flag-icons copied to clipboard
Embedded style in Andorra flag changes color of Latvian flag
When all flags are shown together, the color of the Latvian flag is wrong. I located the error in the flag of Andorra, which changes the fill color of the "class=st1"
That's an interesting problem. This project doesn't actually modify the flags, but simply gathers them all from Wikimedia. I'd suggest making an edit therein for Andorra.
Otherwise, it'd be possible to add a second step to inline all of the styles rather than use classes.
I worked around the problem by rendering the flags as <img>
tags (with data URL), instead of inline <svg>
, thus encapsulating the styling of each flag.