Who faced the next problem?
There are social icons. networks, in the format of svg. Drawn in Illustrator. Here is an example code for one of the icons:
This is how it should look like:
With gulp-svg-sprite, gulp-svgmin, gulp-cheerio, gulp-replace I create a sprite and paste it into html:
When the build starts and the page opens in the browser, I see the following picture:
It turns out that the circle and the icon inside the circle are completely covered in black.
The problem is that when you change the styles of the icon (fill-opacity, stroke and stroke-width), both objects change (circle and logo inside the circle):
If you insert inline, the icon is displayed correctly.
If you delete all styles in the svg code, and add a line to the top that points to the external style sheet <?xml-stylesheet type="text/css" href="..."?> , Then the fill is still there.
How to correctly make a normal display of the icon?




