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

Added React Modal component to the UI Component Library #110

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

lucasff
Copy link

@lucasff lucasff commented Aug 2, 2023

Problem:
Create a reusable Modal using React to be used by other engineers in the Contra platform, in a reusable manner.

Solution:
Using the native dialog HTML element, adding some React flair on top achieve some additional features, such as backdrop dismissing, tab management and trapping focus when it's a Non-Modal.

Please don't forget to read a little bit about my Technical Writing: frontend/src/components/Dialog/README.md

My recorded loom: https://www.loom.com/share/bb5dcd96b5bf4c6abe89e5408d0640c3
Demo usage: https://www.loom.com/share/2935b9653e704dc89f5017b050fae2a1

…added a Modal component that supports stacking. console.log are left intentionally for reviewer to look into thought process
…ement, so only a few specific HTML elements can be selected using the Tab key. Handles backdrop with a simple fade animation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant