Skip to content

Conversation

@danielmarcano
Copy link

Related issues

Closes #18

Description

  • Add focus-trap-react package
  • Wrap LogOut modal contents with FocusTrap to prevent users from focusing, interacting with, or tabbing to other elements outside of the LogOut modal
  • Add position: fixed CSS rule to logOut so that it does not move when the user scrolls the page
  • Enhance the logic for opening and closing the LogOut modal, so that we do not need to modify DOM elements directly, nor their display or opacity rules. It now works with a simple boolean state
  • Add background wrapper within LogOut, to give "opacity" to elements below the modal
log-out-component.mov

…ing logic to avoid manipulating DOM elements directly
@vercel
Copy link

vercel bot commented Oct 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tweeter-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 25, 2023 10:44pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FIX] Logout menu position

1 participant