We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Astro v5.3.0 Node v20.12.2 System macOS (arm64) Package Manager npm Output static Adapter none Integrations @astrojs/tailwind @astrojs/svelte @astrojs/react astro-icon
No response
I want to use an SVG pattern which doesn't have a viewBox, such as this one:
<svg width="200" height="100%"> <defs> <pattern id="stripes" patternUnits="userSpaceOnUse" width="10" height="10"> <rect width="5" height="10" fill="#000" /> </pattern> </defs> <rect width="100%" height="100%" fill="url(#stripes)" /> </svg>
But, using the experimental svg loader, I get error:
NoImageMetadata Could not process image metadata.
With astro-icon v0 this was no problem With astro-icon v1 I could override the viewBox property, by setting it to undefined on the Icon component
SVG should load
https://stackblitz.com/edit/github-gjg3z579
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I want to use an SVG pattern which doesn't have a viewBox, such as this one:
But, using the experimental svg loader, I get error:
With astro-icon v0 this was no problem
With astro-icon v1 I could override the viewBox property, by setting it to undefined on the Icon component
What's the expected result?
SVG should load
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-gjg3z579
Participation
The text was updated successfully, but these errors were encountered: