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

Accessibility issue: <svg> elements with an img role must have an alternative text #474

Open
nali-github opened this issue Dec 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nali-github
Copy link
Collaborator

Provide a general summary of the issue here

We got accessibility ticket when rendering chart as svg: <svg> elements with an img role must have an alternative text
axe DevTools complains

🤔 Expected Behavior?

Can add aria-label to the components

😯 Current Behavior

Unable to add aria-label to the components

💁 Possible Solution

No response

🔦 Context

Here is the implementation. I tried to add a description prop to Chart level in RSC, it's added to the top div. The Bar component doesn't support description prop.

Based on axe DevTools, the aria-label needed to add to 2 lower level elements:
rsc

🖥️ Steps to Reproduce

Storybook link here .
Scan using the axe DevTools can see the problem.

Version

1.15.0

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

Mac

🧢 Your Company/Team

No response

🕷 Tracking Issue

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant