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

feat(Progress stepper): Updated to use render prop for popover #7190

Merged
merged 7 commits into from Apr 18, 2022

Conversation

tlabaj
Copy link
Contributor

@tlabaj tlabaj commented Apr 7, 2022

What: Closes #6658

@patternfly-build
Copy link
Contributor

patternfly-build commented Apr 7, 2022

@tlabaj tlabaj changed the title Progress stepper feat(Progress stepper): Updated to use render prop for popover Apr 7, 2022
Copy link
Contributor

@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Other than the below comment, I opened issue #7200 after noticing something when testing the preview build (unrelated to this PR/issue)

/** @hide Forwarded reference to title container */
innerRef?: React.Ref<any>;
/** Forwards the stepRef to rendered function. Use this prop to add a popover to the step.*/
render?: ({ stepRef }: { stepRef: React.RefObject<any> }) => React.ReactNode;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick that I wouldn't block approval over, but I was wondering if a prop name along the lines of renderPopover or something might work here? Mainly thinking of making the prop name more specific.

@nicolethoen
Copy link
Contributor

I'm noticing that the keyboard accessibility is still missing from the example with a popover. Did you have a chance to peek at that?

id="popover-step2"
titleId="popover-step2-title"
aria-label="completed step with popover, step with danger"
popoveRender={({ stepRef }) => (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing 'r' here is why the build is failing atm.

@kmcfaul kmcfaul merged commit 5eb8243 into patternfly:main Apr 18, 2022
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • eslint-plugin-patternfly-react@4.43.0
  • @patternfly/react-catalog-view-extension@4.55.0
  • @patternfly/react-charts@6.57.0
  • @patternfly/react-code-editor@4.45.0
  • @patternfly/react-console@4.55.0
  • @patternfly/react-core@4.204.0
  • @patternfly/react-docs@5.65.0
  • @patternfly/react-icons@4.55.0
  • @patternfly/react-inline-edit-extension@4.49.0
  • demo-app-ts@4.164.0
  • @patternfly/react-integration@4.166.0
  • @patternfly/react-log-viewer@4.49.0
  • @patternfly/react-styles@4.54.0
  • @patternfly/react-table@4.73.0
  • @patternfly/react-tokens@4.56.0
  • @patternfly/react-topology@4.51.0
  • @patternfly/react-virtualized-extension@4.51.0
  • transformer-cjs-imports@4.42.0

Thanks for your contribution! 🎉

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.

ProgressStepper - investigate help popover using a ref callback
6 participants