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(desc): support desc svg tag. #247

Merged
merged 2 commits into from
Nov 5, 2024

Conversation

christina-de-martinez
Copy link
Contributor

@christina-de-martinez christina-de-martinez commented Oct 23, 2024

Description

I was using astro-icon for the first time as a part of a course I'm taking, and I was curious about some accessibility details. Looking into it, I saw that astro-icon supports the title tag, but doesn't yet support the desc tag.

<desc> isn't used as commonly as <title>, but can be an important tag for complex svgs. Read more about it here: https://www.w3.org/TR/SVG11/struct.html#DescriptionAndTitleElements.

Testing

I used yalc to link my locally-built astro-icon package and was able to pass a desc prop to my icon, which was added as a desc tag. Let me know if there are other ways to test, or edge cases I should look into.

Copy link

changeset-bot bot commented Oct 23, 2024

🦋 Changeset detected

Latest commit: e83be54

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
astro-icon Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Oct 23, 2024

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

Name Status Preview Comments Updated (UTC)
api-astroicon ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 3:31am
astroicon ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 3:31am

Copy link
Owner

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for the PR!

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

Successfully merging this pull request may close these issues.

3 participants