Skip to content
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

feat(descProp): add descProp option #729

Merged
merged 23 commits into from
Jun 19, 2022

Conversation

Aveline-art
Copy link
Contributor

@Aveline-art Aveline-art commented May 27, 2022

Summary

Fixes #714

  • Updated README.md and src files in babel-plugin-svg-dynamic-title to add a descProp
    • the plugin now takes in a tag option indicating the attribute/element to add to the svg ('title' for title, or 'desc' for desc)
  • Updated babel-plugin-transform-svg-component to add additional desc and descId attributes to the svg if descProp is true
  • Updated babel-preset to add the aria-describedby attribute
  • Added descProp to various options, cli-config, etc.
  • Updated documentation to include a Description section

Test plan

Simply npm run test! Existing tests have been slightly modified. New tests have been added to test the new feature.

@vercel
Copy link

vercel bot commented May 27, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
svgr ✅ Ready (Inspect) Visit Preview May 28, 2022 at 3:10PM (UTC)

@Aveline-art
Copy link
Contributor Author

Hi, @gregberge . This PR has been here for a while and I have yet to get a review. Is there someone I should message to get a review?

@gregberge gregberge merged commit a0637d4 into gregberge:main Jun 19, 2022
@gregberge
Copy link
Owner

@Aveline-art thanks for your work on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add desc prop to svg
2 participants