Closed thibault-mahe closed 1 year ago
There is still an issue with some flags using a combination of fill
and url()
. And I can't just remove the fill attribute in this case since it is used with hard values most of the times.
i'll try with a regex to remove fill=url(...
New update: fill=url(...
cannot be removed, too many flags are depending on it and linear gradient...
I'll look into alternative solutions...
Update: still in draft, waiting for https://github.com/Decathlon/vitamin-design/issues/135
Closing this, the icons will be reworked on the design part so we shouldn't have to rework them and our build process on our side.
Changes description
Remove all useless attributes and tags in svg sprite causing bugs in some browsers
Context
When using the the svg
This PR suggests to remove all url() since they seems useless and only bring bugs...
See more comment on the affiliated issue: https://github.com/Decathlon/vitamin-web/issues/1313
Also, the way browsers are differently handling
<defs>
content in external svgs & omitting many definitions like clip paths, gradients, masks or styles, ... is a known bug, at least since 2012. See for instance:Checklist
Does this introduce a breaking change?
TO BE TESTED
Other information