Skip to content

Seperate color for SVG border and fill is not supported. #2024

@jeetu7

Description

@jeetu7

"fill-current text-teal-500" and "stroke-current text-red-500" works individually on svg items. But when I use them together to give border a different color then fill space "fill-current text-teal-500 stroke-current text-red-500", it fails as it takes only the last indicated text color,. I understand that this is because of the way it is referring the currentColor.

i don't know how to get around this but it is certainly a bug inherent due to indirect referencing of text color. Suggest if we have a work around for this corner case.

Also Ref: #249 which suggested another approach, but then was closed due to not have reached this corner case.

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