heyitsmass / BayView

The next generation reservation tracking and notification system
https://bayview.dev
MIT License
1 stars 2 forks source link

Itinerary title functionality #90

Closed cpilande closed 11 months ago

cpilande commented 11 months ago

Description

This PR implements the itinerary title dialog that opens when the location button is clicked on the Itinerary Title Card in order to select which park the user will go to.

Motivation and Context

This PR is necessary to further broaden the functionality of the Itinerary Title Card.

How Has This Been Tested?

Screenshots (if appropriate):

Screenshot 2023-11-26 at 4 42 03 PM

Types of changes

Checklist:

vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
bay-view ✅ Ready (Inspect) Visit Preview Nov 27, 2023 0:42am
cpilande commented 11 months ago

Modals should implement a ReactPortal to properly expose outside of the parent DOM

https://react.dev/reference/react-dom/createPortal

Headless UI library says it implements it for us: “Because of these accessibility concerns, Headless UI's Dialog component actually uses a Portal under-the-hood. This way we can provide features like unobstructed event handling and making the rest of your application inert. So, when using our Dialog, there's no need to use a Portal yourself! We've already taken care of it.” https://headlessui.com/react/dialog#

heyitsmass commented 11 months ago

Modals should implement a ReactPortal to properly expose outside of the parent DOM https://react.dev/reference/react-dom/createPortal

Headless UI library says it implements it for us: “Because of these accessibility concerns, Headless UI's Dialog component actually uses a Portal under-the-hood. This way we can provide features like unobstructed event handling and making the rest of your application inert. So, when using our Dialog, there's no need to use a Portal yourself! We've already taken care of it.” https://headlessui.com/react/dialog#

image