icon icon indicating copy to clipboard operation
icon copied to clipboard

Custom icons cannot change color and the overlay svg color is still black

Open Cocoa-C opened this issue 4 months ago • 1 comments

My situation is summarized as follows:

I've upgraded @nuxt/icon to 2.0.0, and the SVG file doesn't have a hard-coded fill. I'm using the <Icon :name="icon:xxx" /> method to call the local SVG. I'm using .icon { color: var(--neutral); } to control the color, but the icon is still always black.

Cocoa-C avatar Aug 23 '25 07:08 Cocoa-C