Bricks Version: 1.5.7 Browser: Chrome 90 OS: windows
Hi,
I have this weird svg fill bug that I cannot solve. I tried using the code widget/svg widget/ icon widget but that didn’t solve my problem.
So when I use a color to fill an svg all the other svgs adopt that color. And when I remove the fill color they keep that color no matter what I do.
Some svg still work, but most of them keep that color. I can only resolve it by uploading some different svg.
I’m having a similar problem with SVGs exported from Affinity Photo. I’ve opened up the file in a text editor but I can’t see any classes there. This is the only inline style:
They have unique ids and there’s no reference to classes
I’ve given them different classes in Bricks and when I look in the chrome inspector it thinks the stroke and fill is applying but it’s not. There’s no reference to any other styles overriding it
This is the page - I want the icons in the footer to have a white fill:
Hi Vik,
Your SVG contains an embedded image, so you can’t change the stroke or fill. Instead of Affinity Photo, you should use Affinity Designer to export the SVG, so it becomes a “real” SVG.
Usually, you can scale (e.g. browser zoom) an SVG infinitely without any quality loss, but because of the embedded image, that’s not the case (see how pixelated it is):