Skip to content

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

@Cocoa-C

Description

@Cocoa-C

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 method to call the local SVG.
I'm using .icon { color: var(--neutral); } to control the color, but the icon is still always black.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions