vue-fontawesome icon indicating copy to clipboard operation
vue-fontawesome copied to clipboard

Can't use scoped classes in FontAwesomeIcon component

Open focux opened this issue 5 years ago • 1 comments

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.

image

As a work around I'm using global classes to style the icons. I prefer to have all my styles scoped though.

focux avatar Mar 31 '19 19:03 focux

@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)

robmadole avatar May 17 '19 16:05 robmadole

@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.

jasonlundien avatar Nov 03 '22 20:11 jasonlundien