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

fix(Popper): fixed flicker when opening popper content #9339

Merged
merged 3 commits into from
Aug 1, 2023

Conversation

wise-king-sullyman
Copy link
Contributor

What: Closes #9119

Additional issues:

Essentially this fixes the flicker by having the opacity change that makes the Popper content visible to users happen after Popper has initially rendered and figured out where it should be placed.

In accomplishing that goal I moved the largely identical opacity change logic in Tooltip/Popover directly into Popper.

@patternfly-build
Copy link
Contributor

patternfly-build commented Jul 6, 2023

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.

One thing I'm noticing is that for Popover, there's now a noticeable delay when the Popover closes and the trigger receives focus again:

Popover.trigger.focus.delay.mov

Compared to the current behavior where the trigger receives focus fairly instantaneously. That's the only thing I think that's potentially blocking, just because we're swapping one visual bug with another (this might depend whether it makes sense for there to be this delay in the first place)

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.

🎉 🎉 I'm not noticing any flickering when checking Popover, Tooltip, or a random Page demo that has a username dropdown. Previous comment about the trigger focus delay is also resolved.

Copy link
Contributor

@kmcfaul kmcfaul left a comment

Choose a reason for hiding this comment

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

Looks great!

@wise-king-sullyman wise-king-sullyman changed the base branch from postV5 to main July 31, 2023 17:36
@tlabaj tlabaj merged commit 7186dae into patternfly:main Aug 1, 2023
10 checks passed
@wise-king-sullyman wise-king-sullyman deleted the fix-popper-flicker branch August 3, 2023 14:12
nicolethoen pushed a commit to Kells512/patternfly-react that referenced this pull request Sep 1, 2023
* fix(Popper): fixed flicker when opening popper content

* fixed re-focus delay when closing popover

* updated DatePicker test to have consistent value
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 - Popper - menus sometimes flickering when attached with popper
5 participants