-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix icons on firefox by decoding svg imgs #2378
Conversation
It's nice having these in utf8 svg as they remain very editable. I looked into this issue and found these articles which affirm my belief this shouldn't be a crossbrowser issue:
then after debugging the Interestingly, the error message they print is pointing to the wrong thing. the real issue is that the And why? Well, Taylor's post mentions that #'s need to be escaped. :) And we've got So shall we use HSL instead? :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx.
let's revert this encoding change and go from hex colors to hsl colors.
http://mothereffinghsl.com y'all.
The |
I thought it was the issue too, but people on the googs explained as if the problem wasn't just the hashes being invalidated. 💯 Agree about utf 8 being most convenient , will change this ✌️ |
Ups, reverted this as I did |
This is ready |
honestly, this little bug is probably worth a lighthouse audit in its own right: "SVG background-images are cross-browser" :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm. thanks!
fixes (partiallly) #2320 |
Before:
After: