Open J-env opened 1 month ago
astro-icon
4.8.5
Astro v4.8.4 Node v18.18.0 System macOS (x64) Package Manager npm Output static Adapter none Integrations @astrojs/vue
Chrome
If the first svg <symbol /> sprite is hidden, subsequent svg <use /> will not be displayed.
<symbol />
<use />
// <div class="parent" style="display: none;"> // first time <Icon name="logo" /> </div> // Cannot be displayed here <Icon name="logo" /> // ...
This should be a problem with svg rendering itself.
none
What version of
astro-icon
are you using?4.8.5
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Chrome
Describe the Bug
If the first svg
<symbol />
sprite is hidden, subsequent svg<use />
will not be displayed.What's the expected result?
This should be a problem with svg rendering itself.
Link to Minimal Reproducible Example
none