You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Safari does not render Remix icon when using SVG sprite #1057
Hello! I’m writing an article about different methods of using SVGs in React projects.
While experimenting with the SVG sprite approach in the epic-stack app, I noticed an issue: the Remix icon doesn’t appear in Safari.
Steps:
Copy all logos to the other/svg-icons/ dir so they get embedded into sprite.svg
In app/routes/_marketing/index.tsx, render the icons with the <Icon/> component instead of <img>
Open the app in Safari
The result:
The Remix icon is not displayed (while all other icons are visible):
Screenshot
if I render the logos using regular <img> tag (as in a fresh epic-stack install), all logos display correctly in Safari:
I suspect this issue is related to the use of filters inside the Remix logo SVG.
Did you encounter this behavior? Are there any workarounds?
Thanks you!
Activity