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(OverflowMenu): avoid trapping focus on trigger button #4688

Merged

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Nov 14, 2019

Closes #4659

This PR prevents the overflow menu trigger button from trapping focus

Changelog

Changed

  • overflow menu keyboard handlers

Testing / Reviewing

Navigate to the overflow menu trigger button with the keyboard. You should be able to navigate away with Tab now

@emyarod emyarod requested a review from a team as a code owner November 14, 2019 22:17
@ghost ghost requested review from asudoh and vpicone November 14, 2019 22:17
@netlify
Copy link

netlify bot commented Nov 14, 2019

Deploy preview for the-carbon-components ready!

Built with commit 615012a

https://deploy-preview-4688--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented Nov 14, 2019

Deploy preview for carbon-elements ready!

Built with commit 615012a

https://deploy-preview-4688--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Nov 14, 2019

Deploy preview for carbon-components-react ready!

Built with commit 615012a

https://deploy-preview-4688--carbon-components-react.netlify.com

Copy link
Contributor

@joshblack joshblack left a comment

Choose a reason for hiding this comment

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

Seems great, do we need to add a test for this?

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

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

LGTM 👍 - Thanks @emyarod!

@asudoh asudoh requested a review from a team as a code owner November 19, 2019 02:27
@ghost ghost requested review from aledavila and alisonjoseph November 19, 2019 02:27
@asudoh asudoh merged commit 7cd956b into carbon-design-system:master Nov 19, 2019
@emyarod emyarod deleted the 4659-overflowmenu-focus-trap branch November 20, 2019 05:28
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.

OverflowMenu traps focus in React preventing user from tabbing
4 participants