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(Tooltip): avoid stealing focus when dismissing with mouseclick #8820

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Jun 1, 2021

Closes #8180

This PR updates the interactive tooltip's user initiated open/close logic to avoid stealing focus after dismissal via mouse click

Testing / Reviewing

Confirm that the interactive tooltip trigger does not steal focus only after the tooltip is dismissed by user click

@netlify
Copy link

netlify bot commented Jun 1, 2021

✔️ Deploy Preview for carbon-elements ready!

🔨 Explore the source changes: e425fcd

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/60bf94a9f7eb020007c00291

😎 Browse the preview: https://deploy-preview-8820--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Jun 1, 2021

✔️ Deploy Preview for carbon-components-react ready!

🔨 Explore the source changes: e425fcd

🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/60bf94a938fd2b000812671f

😎 Browse the preview: https://deploy-preview-8820--carbon-components-react.netlify.app/iframe

@emyarod emyarod force-pushed the 8180-tooltip-mouseclick-dismissal-focus-management branch from 07cd72b to 7cdebb0 Compare June 1, 2021 17:42
Copy link
Member

@tay1orjones tay1orjones 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 👍 Focus isn't stolen on close via click

correct.focus.on.click.mov

@emyarod
Copy link
Member Author

emyarod commented Jun 4, 2021

bump @dakahn when you have a chance!

@emyarod emyarod force-pushed the 8180-tooltip-mouseclick-dismissal-focus-management branch from 7cdebb0 to e425fcd Compare June 8, 2021 16:02
@kodiakhq kodiakhq bot merged commit cad64cf into carbon-design-system:main Jun 8, 2021
@emyarod emyarod deleted the 8180-tooltip-mouseclick-dismissal-focus-management branch June 9, 2021 14:55
@jnm2377 jnm2377 mentioned this pull request Jun 9, 2021
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tooltip should not force focus after user clicks elsewhere on the page
3 participants