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] Toggle legend in pie chart using keyboard only works the first time #16545

Closed
bjornri opened this issue Oct 26, 2021 · 2 comments · Fixed by #16736
Closed

[Accessibility] Toggle legend in pie chart using keyboard only works the first time #16545

bjornri opened this issue Oct 26, 2021 · 2 comments · Fixed by #16736
Assignees
Labels
a11y Accessibility related. Type: Bug

Comments

@bjornri
Copy link

bjornri commented Oct 26, 2021

Expected behaviour

Repeatedly pressing enter/space key should toggle the focused legend in Pie chart.

Actual behaviour

It only works the first time, then you need to refocus the legend before you can toggle again.

Live demo with steps to reproduce

https://jsfiddle.net/ej0ynb71/

  1. Click "focus frame" to move focus to the iframe with the chart.
  2. Press tab until you reach the legend.
  3. Press enter to toggle one of the items. Observe that the item is toggled and the legend looks like its in focus however the arrow keys dont work anymore.
  4. Press enter one more time to toggle the item back on.
  5. Observe nothing happend.

Product version

Highcharts 9.3.0

Affected browser(s)

Chrome/Firefox

@highsoft-bot highsoft-bot added this to To do in Development-Flow Oct 26, 2021
@raf18seb
Copy link
Contributor

Hi @bjornri, thanks for reporting the issue!

Might be related or similar to #16520

@raf18seb raf18seb added a11y Accessibility related. Type: Bug labels Oct 26, 2021
@oysteinmoseng
Copy link
Member

More likely related to #16467, it seems the proxy elements are being recreated causing focus to be lost

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a11y Accessibility related. Type: Bug
Projects
Development

Successfully merging a pull request may close this issue.

4 participants