semiotic
semiotic copied to clipboard
Inconsistent data passed to toolltip when using keyboard nav
With an OrdinalFrame pie chart using hoverAnnotation={true} and a tooltipContent function, the object passed to the function when hovering with the mouse is a type='column-hover' as we would expect, and contains a column object with percentages and piece data. (first attachment)
However when keyboard nav is used to navigate through the hovers in an accessible way, the object passed to the function is a type='frame-hover' which does not have the column object inside it. (second attachment).
This can be worked around with conditionals, but I would expect the same data in the tooltip no matter how it is activated.


Ditto to this with NetworkFrame

Should be fixed in 1.11.7.
I'm still seeing this. With pointer hover I get a column-hover sent to the tip; with keyboard nav I get a frame-hover. I'm not 100% sure I'm remembering this right, but I think it may have been fixed and is now regressed?
@cvkline is this because you are using column hover for the tooltip rather than piece hover, but piece hover is the default behavior of keyboard nav?
I'm just using hoverAnnotation={true} and then providing a toolTipContent function.
Alright I'll reopen this since and dive into it with the other accessibility issues.
Hello! I have a similar issue with the ResponsiveXYFrame using hoverAnnotation={true} and tooltipContent, it seems that on keyboard navigation with voiceover, the voiceover describes the chart as navigable with left/right arrows for the tooltip, but then when hitting the keys the tooltip is not receiving the frame-hover object. I have 2 lines on this chart using the prop lines, and after tabbing 3x I am able to navigate to the tooltips with the left/right arrows. I'm not super familiar with ARIA but it seems like maybe the description to navigate is on the wrong element? Let me know if I should add any additional details or steps to reproduce. Thank you so much!!