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
maskType
When the lib transforms to SVG, it adds the maskType property and so I get the following error:
Warning: React does not recognize the maskType prop on a DOM element.
I need to change maskType to mask-type but I don't know how I can do it.
<mask id="a" maskType="alpha" maskUnits="userSpaceOnUse" x="1" y="1" width="14" height="14">
The text was updated successfully, but these errors were encountered:
This is something svgo is doing, so you'd need to configure it with svgo options. Off the top of my head, I'm not sure what those would be.
Sorry, something went wrong.
Hi, @ljharb!
I opened an issue there in the SVGO repository, they recommended me to write this plugin:
const renameMaskType = { name: 'renameMaskType', type: 'visitor', fn: () => { return { element: { enter: node => { node.attributes['mask-type'] = node.attributes.maskType delete node.attributes.maskType } } } } }
If I create the svgo.config.js file, it doesn't work. Do you know how I can configure it?
svgo.config.js
I'm also experiencing this issue. @MateusCastro , did you find a solution?
No branches or pull requests
When the lib transforms to SVG, it adds the maskType property and so I get the following error:
Warning: React does not recognize the
maskType
prop on a DOM element.I need to change maskType to mask-type but I don't know how I can do it.
<mask id="a" maskType="alpha" maskUnits="userSpaceOnUse" x="1" y="1" width="14" height="14">
The text was updated successfully, but these errors were encountered: