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
There is an examlpe of svg file:
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M10 0C4.5 0 0 4.5 0 10C0 15.5 4.5 20 10 20C15.5 20 20 15.5 20 10C20 4.5 15.5 0 10 0ZM10 18.3C5.4 18.3 1.7 14.6 1.7 10C1.7 5.4 5.4 1.7 10 1.7C14.6 1.7 18.3 5.4 18.3 10C18.3 14.6 14.6 18.3 10 18.3ZM8.5 6.5L11 9H5V11H11L8.5 13.5L10 15L15 10L10 5L8.5 6.5Z" fill="white"/> </svg>
I expect that in html this file will look the same. But the viewBox attribute is lost in html. The code looks like this:
<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M10 0C4.5 0 0 4.5 0 10C0 15.5 4.5 20 10 20C15.5 20 20 15.5 20 10C20 4.5 15.5 0 10 0ZM10 18.3C5.4 18.3 1.7 14.6 1.7 10C1.7 5.4 5.4 1.7 10 1.7C14.6 1.7 18.3 5.4 18.3 10C18.3 14.6 14.6 18.3 10 18.3ZM8.5 6.5L11 9H5V11H11L8.5 13.5L10 15L15 10L10 5L8.5 6.5Z" fill="white"/> </svg>
There was no such problem in version 1.1.2
The text was updated successfully, but these errors were encountered:
It's likely due to the svgo update from v0 to v1, in v2 of this package vs v1. Possibly related to #103?
Sorry, something went wrong.
@malininss just make sure to have svgo removeAttrs in your .babelrc
svgo
removeAttrs
.babelrc
{ "presets": ["next/babel"], "plugins": [ [ "inline-react-svg", { "svgo": { "plugins": [ { "name": "removeAttrs", "params": { "attrs": "(data-name)" } }, "cleanupIDs" ] } } ] ] }
No branches or pull requests
There is an examlpe of svg file:
I expect that in html this file will look the same. But the viewBox attribute is lost in html. The code looks like this:
There was no such problem in version 1.1.2
The text was updated successfully, but these errors were encountered: