@ApplePieGiraffe
Posted
Hi, Cristina! 👋
Great job on this challenge! 👏 Your solution looks good and works well. 👍
It sounds like you might want to look into using a focus trap for when the modal is open (to "trap" the user focus to the interactive elements in the modal). I'm not very familiar with building one from scratch, but since you are using React you can probably find a package to help you with this or with building modals in general. One package for building modals with React I'd recommend is react-a11y-dialog since it has a great focus on accessibility (and it includes the focus trap in its functionality).
Hope that helps a bit. 🙂
Keep coding (and happy coding, too)! 😁
Marked as helpful