Skip to content
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

Automatically optimized sprites #223

Open
J-env opened this issue May 17, 2024 · 0 comments
Open

Automatically optimized sprites #223

J-env opened this issue May 17, 2024 · 0 comments

Comments

@J-env
Copy link

J-env commented May 17, 2024

What version of astro-icon are you using?

4.8.5

Astro Info

Astro                    v4.8.4
Node                     v18.18.0
System                   macOS (x64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             @astrojs/vue

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.

// 
<div class="parent" style="display: none;">
  // first time
  <Icon name="logo" />
</div>

// Cannot be displayed here
<Icon name="logo" />

// ...

What's the expected result?

This should be a problem with svg rendering itself.

Link to Minimal Reproducible Example

none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant