Skip to content

SVG props optimization #566

@Udobnyj

Description

@Udobnyj

What is the problem?

I started to understand how our Maki library works (while creating a direct export to Git from Figma), and I ran into our strange optimizing SVG process.

We have format-icons.js which is responsible for the optimization of SVG.
And it has a list of allowed props:
Screen Shot 2022-06-01 at 12.20.33.png

And I have questions about this list. Why do we still have props like version, and xmlns, because they are so old? Do we need them for backward compatibility?
Same question about our <xml> part which stores information about the version and encoding.

In the end, the SVGs that are stored in our library now look like this.
1.png

And they can look like this and work exactly the same
Group 1

Proposed solution

I can refine the SVG optimization script and make our icons more modern

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions