Releases: FormidableLabs/victory
35.3.2
35.3.1
35.3.0
35.2.0
(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.
35.1.1
35.1.0
(2020-09-25)
- #1692 - Adds a unique key prop for chart backgrounds
- #1690 - Fixes a minor positioning bug in label backgrounds
- #1688 - Fixes vertical alignment issue for labels. Thanks @Hypnosphi!
- #1685 - Adds an optional
preserveAspectRatio
prop toVictoryContainer
, and usesheight: "100%"
rather thanheight: "auto"
, giving users finer control over how Victory's svgs are positioned and scaled within their containers.