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

Feature/chart menu a11y rewrite #12032

Merged
merged 4 commits into from Sep 20, 2019
Merged

Conversation

oysteinmoseng
Copy link
Member

@oysteinmoseng oysteinmoseng commented Sep 19, 2019

Improved screen reader compatibility for chart export menu.


This PR changes a few things logic wise for the export menu a11y handling. The main difference is the different ARIA attribs used, and the location in the DOM of the proxy containers. In addition, the relevant code has been cleaned up some.

Changes to non-a11y code:

An exception was added to the unit test testing for unwanted attribs in styled mode, if the highcharts-a11y-proxy-button class is set. This because we don't want to confuse users by adding style for the visually hidden proxy buttons in our CSS. Previously these buttons were outside the container tested with the unit test, so this was not an issue.

A new event, chart.exportMenuShown, was added in exporting.ts - complimenting the existing chart.exportMenuHidden.

@oysteinmoseng oysteinmoseng added the Changelog: Bugfix Use on PR to add description as a bugfix in the generated changelog. label Sep 19, 2019
@oysteinmoseng
Copy link
Member Author

One comment: After the rewrite, a comma was left over at the end of a function call argument list. This was not caught by linting, but could it be? var a = myfunc(a, b,); IE chokes on this.

@TorsteinHonsi
Copy link
Collaborator

TorsteinHonsi commented Sep 20, 2019

This was not caught by linting, but could it be?

Yes, if there's an ESLint rule for it, we should enable it

@TorsteinHonsi TorsteinHonsi merged commit 6eddda1 into master Sep 20, 2019
@TorsteinHonsi TorsteinHonsi deleted the feature/chart-menu-a11y-rewrite branch September 22, 2020 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Use on PR to add description as a bugfix in the generated changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants