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

Add Modal Component #105

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

Add Modal Component #105

wants to merge 4 commits into from

Conversation

adastra-react
Copy link

Description:

Hi there,

I've created a new Modal component using Next.js, TypeScript, and Styled Components. The modal is triggered by clicking a button and can be closed by clicking outside of it or using the close button. It also traps focus inside the modal when it is open, and restores focus to the previously focused element when it is closed.

I've also included a Loom video explaining the code and the changes that I've made, which you can find here: Code Walkthrough

Let me know if you have any questions or concerns!

Thanks, Suneil England

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