-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/aria label #1708
Feature/aria label #1708
Conversation
Feature/VictoryBar & Bar components ariaLabel and tabIndex [ready]
Feature/aria label box plot
…imatives feat - add aria-label prop to line feat - pie slice aria & tab index, start on area props
Feature/aria label: slice area and curve
…er-etc Feature/aria label & tab index: scatter, voronoi, candlestick, errorbar
…oup-component Feature/accessibility group component
@ljones87 looks like there are a couple of things failing |
Looks like there are a couple more lint errors. https://travis-ci.com/github/FormidableLabs/victory/jobs/396608334. You can also run this locally with |
haha yeah, addressing those now, just down to fixing all the "magic numbers". Will run all the lints individually before pushing again |
🎉 Once CI passes, I'll get this merged and released as a minor version. Nice work! |
Looks like just one error left, cause by my resolving the lint warnings in
Thought a quick fix would work in moving the unused return to the correct scope, thus replacing the empty array return
But it messed up the types! Third times the charm? 🤞 |
}; | ||
|
||
return []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was looking at the odd failure that was persisting in CI. nps compile-ts
is failing, and I think it was caused by removing this return.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops, you already caught it
🎉 Thanks! I'll get this merged and released this morning. |
Thanks to @ljones87 , tthis PR adds a new
ariaLabel
prop to all primitive components. This prop can take a string or a function that is expected to return a string. Resulting rendered elements will havearia-label
attributes. This PR also adds a a new component,VictoryAccessibleGroup
that renders both ag
tag and an optionaldesc
tag along with its children. This new component may be used as thegroupComponent
on any Victory component.