ubaldop / vue-country-flag

Vue component for country flags

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.f isn't scoped to the componet

VizualAbstract opened this issue · comments

Any element with the class of .f is being styled by the styles in this component.

In our application, our customers are allowed to create or provide supplemental HTML, and some customers use 'f' as a class. This is causing many of their UIR elements to appear broken.

Hi @VizualAbstract, thanks for pointing out the issue. Would '.flag' be ok instead?

I think so! @p3trur0

I know for my team, I always recommend we prefix our classes. Our company's initicals are rc, so I use .rc_, but that's just our preference. Either way, .flag would be a great upgrade

Cool! I think I'll some spare time to work on it tomorrow. Otherwise, if you are in a rush, please consider to do it by yourself and open a PR :)

Hi @VizualAbstract, please check out version 2.0.1. As suggested, the main CSS class of the component has been renamed to flag. Hope it helps to solve your issue.