Focus not being sent to nav menu items upon opening the menu
Opened this issue · 0 comments
gregogun commented
Potential approaches:
- Use Chakra UI modal to render nav menu which add focus for us automatically and leverage 'onClose' prop to choose which element to send focus to on closing of portal/modal. Using a button outside of modal and passing props may not work as expected or cause issues
- Manually manage focus using 'useRef' to target elements to send focus to and from
Helpful resources:
Chakra UI Docs
MDN docs
Marcy Sutton course