Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

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

lucasff added 4 commits July 29, 2023 00:27
…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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant