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

fix: prevent removing the namespace by svgr ([#475](https://github.co… #498

Merged
merged 1 commit into from
Nov 14, 2020

Conversation

MichaelGruben
Copy link
Contributor

…m//issues/475)

Summary

I ran into the issue that SVGR-Components are not rendered if they are placed as css pseudo-element. Here they are parsed as XML - so they need a valid namespace (see #475). Everyone still has the option to remove the namespaces by svgo.

Test plan

I ran yarn test and the updated snapshots show that the namespaces stay in place.

@vercel
Copy link

vercel bot commented Oct 2, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/gregberge/svgr/avtnnkjhl
✅ Preview: https://svgr-git-fork-michaelgruben-preservenamespaces.gregberge.vercel.app

@gregberge gregberge merged commit 00e84ea into gregberge:master Nov 14, 2020
@gregberge
Copy link
Owner

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants