Skip to content

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

Description

@bjornri

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions