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

[ENH]: Accessibility for SVG hyperlinks #21477

Open
jonblatho opened this issue Oct 27, 2021 · 1 comment
Open

[ENH]: Accessibility for SVG hyperlinks #21477

jonblatho opened this issue Oct 27, 2021 · 1 comment

Comments

@jonblatho
Copy link

Problem

Currently matplotlib supports adding hyperlinks in SVGs, but (I believe) it lacks support for setting an aria-label attribute on links to improve accessibility.

Proposed solution

Alongside existing functionality to provide URLs for SVG hyperlinks (like the url= arg and set_urls()), a user should be able to provide corresponding aria-label attributes to be set for <a> tags.

Additional context and prior art

An example use case for this is adding links to an SVG scatter plot for use on the web where the points are too densely packed to make text labeling feasible.

@story645
Copy link
Member

I think this would be a follow on to #21328, which adds aria attributes to artist objects.

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

No branches or pull requests

2 participants