Skip to content
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

Allow additional props from user, such as aria-label and data-testid #2192

Merged
merged 13 commits into from
Apr 14, 2022

Conversation

becca-bailey
Copy link
Contributor

@becca-bailey becca-bailey commented Apr 14, 2022

  • Allows title and desc to be passed to Victory components
  • Allows data-testid and aria-* props to be passed through using an allow list

@dlcartright I closed your original PRs, and opened a new one with just the component changes and tests.

Closes #2040

dlcartright and others added 13 commits March 5, 2022 17:20
…list currently allows props starting with 'aria-' and 'data-'. VictoryChart, VictoryGroup, VictoryStack, and VictoryContainer have all been wired up to allow these user props. More components to follow.
Added functionality to be able to pass user props to components. Safe…
…list currently allows props starting with 'aria-' and 'data-'. VictoryChart, VictoryGroup, VictoryStack, and VictoryContainer have all been wired up to allow these user props. More components to follow.
Add user props tests and remove arbitrary demo props
Add safe user props to all top-level components
@becca-bailey
Copy link
Contributor Author

I'm going to merge this for now - there is still some outstanding work for primitive components and nested components like Line and Bar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot add data-testid or id for tests
2 participants