(2020-10-08)
Accessibility Improvements
-
#1708 - This PR adds
ariaLabel
to Victory's primitive components (VictoryLabel
,Area
,Bar
etc.). This new prop can take a string or a function that expected to return a string, and addsaria-label
attributes to svg elements Victory renders. This PR also addstabIndex
andaria-label
props toVictoryClipContainer
, and creates a newgroupContainer
,VictoryAccessibleGroup
, which renders ag
tag and an optionaldesc
tag along with its other children.VictoryAccessibleGroup
also takesaria-label
andaria-describedby
props. Thanks @ljones87 for all the hard work on this new feature! -
#1709 - Adds default
onFocus
andonBlur
event handlers toVictoryTooltip
so that users can trigger tooltips by tabbing through the chart elements whentabIndex
is set.
Bug fixes for labels and tooltips
- #1707 - Respects user-provided props on the label component
VictoryVoronoiContainer
renders, includingtext
,style
,flyoutStyle
,width
andheight
- #1710 - Adds support for providing functions to the
angle
prop onVictoryLabel
- #1711 - Fixes a bug related to applying angles to labels whose position is set by
datum
rather than coordinate.