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

Insert title and desc tags #10

Closed
syuji-higa opened this issue Feb 12, 2019 · 2 comments
Closed

Insert title and desc tags #10

syuji-higa opened this issue Feb 12, 2019 · 2 comments
Labels

Comments

@syuji-higa
Copy link

Want to insert title and desc tags.

See follow the example.

Set title and desc tags to svg element.

<svg-icon
  name="sample"
  title="Title"
  desc="Description"
/>

After built,

<svg xmlns="http://www.w3.org/2000/svg">
  <title>Title</title>
  <desc>Description</desc>
  <use xlink:href="/_nuxt/assets/sprite/gen/icons.svg#i-sample"></use>
</svg>
@farnabaz
Copy link
Collaborator

farnabaz commented Feb 13, 2019

Hi
Seems nice, as MDN says:

The <title> element generally improves accessibility of SVG documents.

It's a big step to improve accessibility, We will consider this in our next release, Thank you

@farnabaz
Copy link
Collaborator

🎉 This issue has been resolved in version 0.2.0 🎉

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

No branches or pull requests

2 participants