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
I'm having trouble preventing the role attribute being removed from my .svg templates. I need some to be img and some to be presentation.
role
.svg
img
presentation
I've not sure if the problem is with svgr or svgo, I've tried keepRoleAttr but not joy:
keepRoleAttr
svgoConfig: { plugins: [ { name: 'removeUnknownsAndDefaults', params: { keepRoleAttr: true, }, } ], },
I've also tried using svgProps with no joy, I'm guessing it overrides what's in the template to undefined.
undefined
svgProps: { role: '{undefined}', },
Is there a way to just use what's in the template?
I'm using @svgr/webpack v8.1.0 with nextjs v14.2.2.
@svgr/webpack
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm having trouble preventing the
role
attribute being removed from my.svg
templates. I need some to beimg
and some to bepresentation
.I've not sure if the problem is with svgr or svgo, I've tried
keepRoleAttr
but not joy:I've also tried using svgProps with no joy, I'm guessing it overrides what's in the template to
undefined
.Is there a way to just use what's in the template?
I'm using
@svgr/webpack
v8.1.0 with nextjs v14.2.2.Thanks
The text was updated successfully, but these errors were encountered: