You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! 👋 First of all, thanks for creating this amazing project!
I want to propose the ability to add unique id for every single <title> tag. So we can use correctly the aria-labelledby.
If we want to use the aria-labelledby that is recommended to enhance the SVG accessibility we can't because the aria-labelledby needs to target the id from the title tag.
I propose a new config option called titleId.
Example
In our config file, we would have something like:
svgoConfig: {
plugins: [
{ cleanupIDs: false }
]
},
svgProps: {
xmlns: "http://www.w3.org/2000/svg"
},
titleProp: true,
titleId: filePath // the user can specify a uniqueId
Hello @miukimiu, it is a good idea. The problem is that ids are actually a problem because they have to be unique. So the best way to provide this support is probably to inject a titleId property. This way it could be specified as property.
🚀 Feature Proposal
Hi there! 👋 First of all, thanks for creating this amazing project!
I want to propose the ability to add unique id for every single
<title>
tag. So we can use correctly thearia-labelledby
.If we want to use the
aria-labelledby
that is recommended to enhance the SVG accessibility we can't because thearia-labelledby
needs to target theid
from thetitle
tag.I propose a new config option called
titleId
.Example
In our config file, we would have something like:
This would generate a component like:
The text was updated successfully, but these errors were encountered: