Skip to content

[FEATURE REQUEST] Automatically convert svg styles to attributes #1277

@Snailedlt

Description

@Snailedlt

I have searched through the issues and didn't find my problem.

  • Confirm

Problem

Upon fixing some stuff (#1276) causing a bug in the react-devicons project, I noticed that the process of converting SVG styles to attributes can be automated.

Some projects using devicons, like react-devicons will fail if styles are used in the SVG icons. This has led to several bugfixes. See #1169

Here's a screenshot of the issue:
image

Possible Solution

SVGO has a neat script (convertStyleToAttrs.js) to go through and convert all SVG styles into attributes. We could leverage this script to automate the process with one of our bots (maybe make a new one?).

This would be help ensure the SVG's work in the react-devicons project and potentially future projects with similar solutions.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions