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: Unable to close out of flyout menu #306

Merged
merged 3 commits into from
Nov 2, 2021
Merged

Conversation

suzubara
Copy link
Contributor

@suzubara suzubara commented Nov 1, 2021

Description

This PR makes a small adjustment to the header/nav overlay markup so those elements are not flex children (direct descendants of an element with display: flex), which was interfering with their z-index when the overlay is open.

Fixes #282

Review Notes

To test, view the site at a mobile/tablet screen size and open the header navigation (the Menu button). Verify you are able to interact with the links, and close the menu by clicking the "X" icon.

image

@github-actions
Copy link
Contributor

github-actions bot commented Nov 1, 2021

🎉 View the deployed prototype - https://282-fix-mobile-nav--ussf-portal-client.netlify.app

jbecker01
jbecker01 previously approved these changes Nov 1, 2021
Copy link
Contributor

@jbecker01 jbecker01 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!

@abbyoung
Copy link
Contributor

abbyoung commented Nov 1, 2021

The issue mentions being able to close the menu with a click outside the menu. Currently, it stays open. Could we add the useCloseWhenClickedOutside hook, or something else?

@suzubara
Copy link
Contributor Author

suzubara commented Nov 1, 2021

The issue mentions being able to close the menu with a click outside the menu. Currently, it stays open. Could we add the useCloseWhenClickedOutside hook, or something else?

Okaaaaaay done!

@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2021

🎉 View the deployed prototype - https://282-fix-mobile-nav--ussf-portal-client.netlify.app

@suzubara suzubara merged commit 2ed614c into main Nov 2, 2021
@suzubara suzubara deleted the 282-fix-mobile-nav branch November 2, 2021 18:46
@suzubara suzubara mentioned this pull request Dec 20, 2021
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.

Unable to close out of flyout menu
3 participants