-
Notifications
You must be signed in to change notification settings - Fork 377
Chore(ChartLegend): updated interactive legend example #11623
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
Chore(ChartLegend): updated interactive legend example #11623
Conversation
|
Preview: https://patternfly-react-pr-11623.surge.sh A11y report: https://patternfly-react-pr-11623-a11y.surge.sh |
|
@thatblindgeye we have more examples in legends tab that need to be updated. |
|
@rebeccaalpert wdyt re: the above comment? The issue only called out a specific example, but was the intent that other examples would also be updated? |
|
I think ideally, I'd love to see all our examples in current syntax over time, but I'm personally a fan of small PRs. I think it might be better if we had separate issues for the others. The fact that it was in class syntax was a real hurdle for the guy I'm working with (new to React; didn't live through class syntax). |
|
For now let's keep this PR to updating the specified example from the linked issue. We can look into opening a followup down the line if it comes up again. |
rebeccaalpert
left a comment
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.
This looks good to me. Thanks for updating!
| getInteractiveLegendEvents, | ||
| getInteractiveLegendItemStyles, | ||
| } from '@patternfly/react-charts/victory'; | ||
| } from '@patternfly/react-charts'; |
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.
Can we keep the original import path?
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.
Sure, we can keep it. I might have changed it accidentally.
f8dc1fb to
7335c3b
Compare
|
Your changes have been released in:
Thanks for your contribution! 🎉 |
Closes #11572