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): set focusTrap prop on FloatingMenu #6978

Merged

Conversation

emyarod
Copy link
Member

@emyarod emyarod commented Oct 6, 2020

Closes #6977
Related #5489 #6458 #6722

This PR sets the focusTrap prop on the overflow menu's internal FloatingMenu so that browser focus automatically moves into the overflow menu when the menu is opened, fixing a regression

Testing / Reviewing

Confirm that the autofocus behavior of the overflow menu is restored

@netlify
Copy link

netlify bot commented Oct 6, 2020

Deploy preview for carbon-elements ready!

Built with commit 699c6ca

https://deploy-preview-6978--carbon-elements.netlify.app

@netlify
Copy link

netlify bot commented Oct 6, 2020

Deploy preview for carbon-components-react ready!

Built without sensitive environment variables with commit 699c6ca

https://deploy-preview-6978--carbon-components-react.netlify.app

Copy link
Member

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

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

LGTM 👍 ✅

@kodiakhq kodiakhq bot merged commit 09d5aaa into carbon-design-system:master Oct 6, 2020
@emyarod emyarod deleted the 6977-overflowmenu-autofocus branch October 7, 2020 16:51
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 focus does not automatically move into the menu on open
3 participants