You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The option currently exists to inline styles, but it does not work if the class is used more than once. It makes sense from an optimisation point of view, but if you are optimising SVGs which will ultimately be inlined in HTML, sometimes it's desirable not to have any styles/classes that might leak. Arguably it's confusing to select "Inline styles" and find they are not.
If this is not desirable, we'd need an option to create "unique" classes instead.
The text was updated successfully, but these errors were encountered:
jamieburchell
changed the title
Add option to inline all styles, even if used more than once
"Inline styles" does not inline styles if they are used more than once
Oct 6, 2022
I'm having style(fill) override issues. I appreciate the tool. It did a great job shrinking my files from the graphics software. Now I just need to go manually replace the styles.
The option currently exists to inline styles, but it does not work if the class is used more than once. It makes sense from an optimisation point of view, but if you are optimising SVGs which will ultimately be inlined in HTML, sometimes it's desirable not to have any styles/classes that might leak. Arguably it's confusing to select "Inline styles" and find they are not.
There is apparently an option to support this:
svg/svgo#592 (comment)
If this is not desirable, we'd need an option to create "unique" classes instead.
The text was updated successfully, but these errors were encountered: