-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
Add desc prop to svg #714
Comments
Hello @Aveline-art, I am OK with this feature, feel free to implement it! |
@gregberge I would love to work on this in my free time! But I have to admit, this is my first time working with such a complex codebase. Can you let me know if my thoughts are on the right track:
Is there anything I missed? Or did I make some mistake somewhere? Any feedback would be appreciated as it would help me get started. |
Hi @Aveline-art, yeah you are totally right. I think the easier for you is to handle the When done, you can create a You can add tests at each step. |
🚀 Feature Proposal
Just as titleProp allows the addition of a custom title via props, let's also make a custom desc (and its id) available as well! This will make it easier to build in accessibility into our svg components.
Motivation
I was looking at the w3 guidelines for svgs and it was recommended to have a title and description so that users can understand the meaning behind an svg.
Example
In code, something like:
Take this svg (taken from here):
And do something like:
Pitch
Making SVGs accessible benefits everyone and this will make it a lot easier to create accessible svgs.
The text was updated successfully, but these errors were encountered: