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

Closed
J-env opened this issue May 17, 2024 · 1 comment
Closed

Automatically optimized sprites #223

J-env opened this issue May 17, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation has-workaround

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

@stramel stramel added documentation Improvements or additions to documentation has-workaround labels Oct 22, 2024
@stramel
Copy link
Collaborator

stramel commented Oct 22, 2024

This is a quirk of the Sprite implementation that we chose to go with. You can switch these to inline for now using is:inline. We're working on a solution for the next iteration.

@stramel stramel closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation has-workaround
Projects
None yet
Development

No branches or pull requests

2 participants