vue-fontawesome
vue-fontawesome copied to clipboard
Can't use scoped classes in FontAwesomeIcon component
I don't know if it's the intended behavior, I try to read the docs and I didn't find anything related. I can't use a scoped class in FontAwesomeIcon
component. I looked into the source (see the image below) and I saw that it's because the parent data attribute is not being added to the component root tag.
As a work around I'm using global classes to style the icons. I prefer to have all my styles scoped though.
@focux you'll have to provide a reproduction of this using something like codesandbox.io. I'm not 100% sure what the issue is (there is a scoped data attribute on the svg
element)
@focux ---
I am going to go ahead and close this issue. If you are still having troubles and find that this is still a problem just let us know and we can open this back up.