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
I don't know if this is a bug report or a feature request because I think it is not directly related to nuxt-icons. However, there is a problem, and I reported it here in the hope that someone comes up with a solution.
Describe the bug
When I use an SVG icon in 2 or more tab items, it doesn't display correctly.
To Reproduce
Define a multi-tab using vuetify.
Place the same SVG into all tabs
Observe that only the first item displays correctly
Expected behavior
I expect all other SVGs in the other tabs to display correctly.
Desktop:
OS: Mac
Browser: Chrome/Firefox (It works with Safari but it has some other issues)
Some Reaserch:
I believe that nuxt-icons should prefix IDs of defs with a unique value for each render.
Currently, it renders something like this for all SVGs in all tabs:
Since all of them are using the same ID (i, j, k), I think Chrome/Firefox only consider the defs of the first SVG, and when the first SVG is gone, all other SVGs face with the problem.
I don't know if this is a bug report or a feature request because I think it is not directly related to
nuxt-icons. However, there is a problem, and I reported it here in the hope that someone comes up with a solution.Describe the bug
When I use an SVG icon in 2 or more tab items, it doesn't display correctly.
To Reproduce
Expected behavior
I expect all other SVGs in the other tabs to display correctly.
Desktop:
Reproduction link:
https://stackblitz.com/edit/github-remtxs-pnzwnx
Some Reaserch:
I believe that
nuxt-iconsshould prefix IDs ofdefswith a unique value for each render.Currently, it renders something like this for all SVGs in all tabs:
Since all of them are using the same ID (i, j, k), I think Chrome/Firefox only consider the defs of the first SVG, and when the first SVG is gone, all other SVGs face with the problem.
nuxt-icons.mp4