Skip to content

Better support for SVGs in icon links #1487

@gresavage

Description

@gresavage

I am currently struggling to get the same behavior between a local SVG and a FontAwesome SVG.

I have my CSS set up to change the color of each icon to the flagship color of each destination. E.G #2496ED for docker, #FC6D26 for Gitlab, etc. However one of the icons I'm using is local because FontAwesome doesn't currently have it in its repertoire.

I see that local images are inserted into the HTML differently than a FontAwesome one so SVGs end up losing a lot of their functionality. In my case being able to have the fill="currentColor" behave appropriately.

I would like to propose that SVGs be able to be placed into the HTML for icon links the same way as FontAwesome ones - whether they reside on the web or locally. In my opinion, it's as simple as checking the extension of the file/url. Alternatively an additional type: svg could be handled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions