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

feat: fix LogOut modal position, and enhance its opening/closing logic #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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