-
Notifications
You must be signed in to change notification settings - Fork 6
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: Menu Drop down #1342
base: main
Are you sure you want to change the base?
fix: Menu Drop down #1342
Conversation
✅ Deploy Preview for veda-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
b1c9d34
to
5acc803
Compare
@@ -0,0 +1,15 @@ | |||
import { useEffect, useRef } from 'react'; |
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.
Not very important, but maybe we can move both use-fix-hooks in the same directory? app/scripts/components/common/page-header/use-mobile-menu-fix.ts is the one i implemented for the resize bug. I don't care which directory, but I like them together 🙂
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.
@AliceR I think the new hook is generic enough to be useful in other places not limited to this component, so it might make sense to keep it in the general utils directory?
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.
This is looking good!
Do we want to add closing the mobile menu to this work, or should this be a separate issue to tackle? It's pretty much the same logic, maybe we just need to setExpanded to false?
Close the new USWDS page header dropdown when clicking outside of it
#1296
Validation / Testing
Open one of the two drop down options, click on another link on the page. When the browser navigates to the new page that original dropdown menu should be closed.