github FormidableLabs/victory v35.2.0
35.2.0

latest releases: v37.1.1, v37.1.0, v37.0.2...
3 years ago

(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 adds aria-label attributes to svg elements Victory renders. This PR also adds tabIndex and aria-label props to VictoryClipContainer, and creates a new groupContainer, VictoryAccessibleGroup, which renders a g tag and an optional desc tag along with its other children. VictoryAccessibleGroup also takes aria-label and aria-describedby props. Thanks @ljones87 for all the hard work on this new feature!

  • #1709 - Adds default onFocus and onBlur event handlers to VictoryTooltip so that users can trigger tooltips by tabbing through the chart elements when tabIndex is set.

Bug fixes for labels and tooltips

  • #1707 - Respects user-provided props on the label component VictoryVoronoiContainer renders, including text, style, flyoutStyle, width and height
  • #1710 - Adds support for providing functions to the angle prop on VictoryLabel
  • #1711 - Fixes a bug related to applying angles to labels whose position is set by datum rather than coordinate.

Don't miss a new victory release

NewReleases is sending notifications on new releases.