secundant / neodx

A collection of frontend-focused tools aimed at enhancing your development experience
MIT License
78 stars 6 forks source link

`@neodx/svg` - Add support for extracting all referenced defs to inline strings #97

Open secundant opened 1 year ago

secundant commented 1 year ago

The issue arises from the missing <defs> section in the SVG, within the <use> Shadow DOM. Browsers, at least Chrome, ignore this silently. Possible solutions include:

Closes #69

7iomka commented 11 months ago

That's the main reason I inline my sprites, but bloating every page without caching for the sake of such cases is impractical. In the end I decided to insert such images as React components for svgs with gradient and etc, and for rest to keep use sprites in external file

Mottoweb commented 1 week ago

Any update on this? I can't get linearGradient to work as expected