Up until recently I’ve had no issues using custom CSS in a “global styles” component on my pages but it looks like that’s stopped working for some reason on a couple projects. Is this happening to anyone else?
The CSS is applied correctly once the site is viewed on the staging domain so I have no reason to believe it’s a syntax issue. It’s most noticeable on the links within my project as I have a style to have them inherit the parent color, however now that the code isn’t applied they’re showing as the default blue/purple.
For anyone else stumbling upon this in the future, it looks like the issue was the use of a data:image/svg+xml encoded svg for a custom external link icon.
The exact code that caused the issue is noted below:
Strangely enough, I needed to completely remove the style from my HTML embed element — commenting it out didn’t fix the issue (which is why I missed it in my troubleshooting).
I ended up using an inline SVG instead and referencing the ID within my after pseudo-class to achieve the same result without any issue