portfolio-v2 icon indicating copy to clipboard operation
portfolio-v2 copied to clipboard

Focus not being sent to nav menu items upon opening the menu

Open gregogun opened this issue 4 years ago • 0 comments

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

gregogun avatar May 01 '21 11:05 gregogun