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(Popper, misc): update reference to triggerRef, components to use popperRef/triggerRef #8733

Merged
merged 8 commits into from Feb 28, 2023

Conversation

kmcfaul
Copy link
Contributor

@kmcfaul kmcfaul commented Feb 22, 2023

What: Closes #8481

  • Renames reference to triggerRef.
  • Updates components that use Popper to pass triggerRef and popperRef so the wrapping divs are removed.
  • Forwards ref to InputGroup (for SearchInput).
  • This also contains the same Table tooltip change (fix(Table): fix tooltips not appearing #8671) to allow Popper to render trigger with triggerRef to minimize the amount of structural changes.

Tooltip and Popover require triggerRef to remove the wrapping div on the trigger, other components should include the references automatically. Not all components have exposed ref props so they use internal refs to pass to Popper.

@patternfly-build
Copy link
Contributor

patternfly-build commented Feb 22, 2023

@kmcfaul
Copy link
Contributor Author

kmcfaul commented Feb 22, 2023

Noticed a bit of an odd behavior while I was fixing an integration test where when the window is narrowed, there is a white space that is added to the right of the screen of the demo app. I've went back and tested this on a plain v5 branch and still see the issue, so I'm not sure what's going on. For now I've updated the test.

Screenshot 2023-02-22 at 11 40 07 AM

@mcoker @nicolethoen

Copy link
Contributor

@nicolethoen nicolethoen left a comment

Choose a reason for hiding this comment

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

I opened a follow up codemod issue patternfly/pf-codemods#296
@kmcfaul i'd love if you double check that there are no other breaking changes in this PR we should note in the codemod issue.

@nicolethoen nicolethoen merged commit c4c085c into patternfly:v5 Feb 28, 2023
@patternfly-build
Copy link
Contributor

Your changes have been released in:

  • @patternfly/react-code-editor@5.0.0-alpha.16
  • @patternfly/react-core@5.0.0-alpha.16
  • @patternfly/react-docs@6.0.0-alpha.18
  • @patternfly/react-table@5.0.0-alpha.16

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.

Bug - Tooltip - removeFindDomNode causes validateDomNesting warning
4 participants