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

Improve accessibility of .svg files #29

Open
mgifford opened this issue Sep 21, 2022 · 0 comments
Open

Improve accessibility of .svg files #29

mgifford opened this issue Sep 21, 2022 · 0 comments

Comments

@mgifford
Copy link

There are some great models here:
https://deque.com/blog/creating-accessible-svgs/

Your output presently is:
<svg id="usa-map" data-tip="true" data-for="usa" fill="none" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 589" width="700" currentItem="false">

<svg role="img" aria-labelledby="maptitle mapdesc" id="usa-map" data-tip="true" data-for="usa" fill="none" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 589" width="700" currentItem="false"><title id="maptitle">Chloromap: A Map with USA States</title><desc id="mapdesc">This is a map which highlights differences between different USA states.</desc>

You'd want certainly have the title/description be generated by the webform obviously

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

No branches or pull requests

1 participant