-
Notifications
You must be signed in to change notification settings - Fork 599
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(TooltipV2): delay tooltip opening time by 50ms #5350
fix(TooltipV2): delay tooltip opening time by 50ms #5350
Conversation
🦋 Changeset detectedLatest commit: bed7c74 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
size-limit report 📦
|
…2-bug-tooltip-on-iconbutton-should-not-show-up-instantly
…se when non-matching element
@@ -128,7 +128,7 @@ describe('Overlay', () => { | |||
expect(container.getByText('Add to list')).toBeInTheDocument() | |||
|
|||
// open second menu | |||
await user.click(container.getByText('Create list')) | |||
fireEvent.click(container.getByText('Create list')) |
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.
I tried for minute to get this to work with user.click, I replicated this test manually in storybook and it works as expected. I noticed userEvent was triggering different events than manual testing did 🤷🏽♀️
} else { | ||
setIsPopoverOpen(false) |
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.
Fixes bug where overlay would stay "stuck" and not able to close via keyboard due to popOver state being open but it not actually being in the DOM
…-should-not-show-up-instantly
…-should-not-show-up-instantly
👋 Hi, there are new commits since the last successful integration test. We recommend running the integration workflow once more, unless you are sure the new changes do not affect github/github. Thanks! |
👋 Hi, there are new commits since the last successful integration test. We recommend running the integration workflow once more, unless you are sure the new changes do not affect github/github. Thanks! |
👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/354745 |
🟢 golden-jobs completed with status |
Closes https://github.com/github/primer/issues/4432
Adds a 50ms delay to show the tooltip when triggered via the mouse to prevent showing tooltips when the user is just "passing by"
Changelog
New
Changed
fireEvent
in overlay test instead ofuserEvent
to trigger click.Rollout strategy
Testing & Reviewing
Merge checklist