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? 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
astro-icon
No response
Astro v4.2.5 Node v20.11.0 System Linux (x64) Package Manager pnpm Output static Adapter none Integrations @astrojs/tailwind astro-icon
Colors defined in defs like gradients not working properly
Looks like only the first one is considered. Related to: svg/svgo#1896 and https://svgo.dev/docs/plugins/cleanup-ids/
defs should mantain svg style
Disabling some svgo plugins fixes the issue
export default defineConfig({ integrations: [ icon({ svgoOptions: { plugins: [ { name: "preset-default", params: { overrides: { cleanupIds: false, }, }, }, ], }, }) ], }, })], });
https://stackblitz.com/edit/github-xzukxg?file=src%2Fpages%2Findex.astro
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of
astro-icon
are you using?No response
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Colors defined in defs like gradients not working properly
Looks like only the first one is considered. Related to: svg/svgo#1896 and https://svgo.dev/docs/plugins/cleanup-ids/
![image](https://private-user-images.githubusercontent.com/117351089/300021574-bbaa9ea2-11cc-498b-84fd-e20c176a531b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjI5ODI3ODIsIm5iZiI6MTcyMjk4MjQ4MiwicGF0aCI6Ii8xMTczNTEwODkvMzAwMDIxNTc0LWJiYWE5ZWEyLTExY2MtNDk4Yi04NGZkLWUyMGMxNzZhNTMxYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgwNlQyMjE0NDJaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMjI3ZTc4ZDk5NTI4NzBkZmUxMGUwYzA1ODU1Mjk5NmYwZTNhNjVmZTdhMGU1ODJkOTY3OTliMjdkN2U5Y2UwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.F1zmYbKH4GPr6chedhN6VospOTsCI_mm9AHB4MGYymE)
What's the expected result?
defs should mantain svg style
Disabling some svgo plugins fixes the issue
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-xzukxg?file=src%2Fpages%2Findex.astro
The text was updated successfully, but these errors were encountered: