-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 with using 2 charts on the same page. #4384
accessibility issue with using 2 charts on the same page. #4384
Comments
@julianna-langston thoughts? |
Both Note that the SVG element itself already has a @ckifer Is there a time when the Anyway, @nermin97, I hope it's easy for you to re-run the scans that are giving you that error. The error message looks like aXe/Deque to me, but I wasn't able to reproduce the error using Lighthouse (which sort of uses aXe). Since I don't know what tool you used for the scan, I'm not sure what will actually get you a clean scan. These options are your best bet for clearing the error today:
|
@julianna-langston thanks for the detailed reply! These are the usages of It looks like two SVGs are rendered in a chart with a Otherwise, only 1 |
The Legend example shouldn't conflict with removing the I've opened a PR for the change. |
<!--- Provide a general summary of your changes in the Title above --> ## Description <!--- Describe your changes in detail --> Before this PR, there was a `role` attribute on both the `.recharts-wrapper` parent DIV, as well as the SVG element. This is unnecessary, since the SVG element is enough. That extra role also caused problems, as I outlined in #4384 This PR removes the `role` attribute from the `.recharts-wrapper` element. The SVG element still retains its role. ## Related Issue <!--- This project only accepts pull requests related to open issues --> <!--- If suggesting a new feature or change, please discuss it in an issue first --> <!--- If fixing a bug, there should be an issue describing it with steps to reproduce --> <!--- Please link to the issue here: --> #4384 ## Motivation and Context <!--- Why is this change required? What problem does it solve? --> ## How Has This Been Tested? <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> ## Screenshots (if appropriate): ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Checklist: <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [ ] I have added tests to cover my changes. - [ ] I have added a storybook story or extended an existing story to show my changes
<!--- Provide a general summary of your changes in the Title above --> <!--- Describe your changes in detail --> Before this PR, there was a `role` attribute on both the `.recharts-wrapper` parent DIV, as well as the SVG element. This is unnecessary, since the SVG element is enough. That extra role also caused problems, as I outlined in #4384 This PR removes the `role` attribute from the `.recharts-wrapper` element. The SVG element still retains its role. <!--- This project only accepts pull requests related to open issues --> <!--- If suggesting a new feature or change, please discuss it in an issue first --> <!--- If fixing a bug, there should be an issue describing it with steps to reproduce --> <!--- Please link to the issue here: --> #4384 <!--- Why is this change required? What problem does it solve? --> <!--- Please describe in detail how you tested your changes. --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) <!--- Go over all the following points, and put an `x` in all the boxes that apply. --> <!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> - [ ] My change requires a change to the documentation. - [ ] I have updated the documentation accordingly. - [ ] I have added tests to cover my changes. - [ ] I have added a storybook story or extended an existing story to show my changes
cherry-picked your commit into master as well. This should be out next patch |
released in 2.12.4 |
Thanks for the help. |
I am facing an accessibility issue when using 2 charts next to eachother
I've added the aria-labeledby on both the charts but it is not reflecting on the recharts-wrapper it seems.
The text was updated successfully, but these errors were encountered: