Date Picker Footer Solutions Test
Testing Instructions
Click each solution button below to test the date picker modal with different footer positioning approaches. Test on a mobile device to see which solution keeps the "Done" button visible and accessible.
Available Solutions
Solution 1: Fixed Positioning
Uses position: fixed for footer, adds padding to prevent overlap
Solution 2: Absolute Positioning with Flex
Uses position: absolute within relative container with flexbox
Solution 3: CSS Grid Layout
Replaces flexbox with CSS Grid for better layout control
Solution 4: Calculated Max-Height
Calculates exact max-height for calendar container
Solution 5: Footer Outside Scroll Container
Moves footer outside scrollable area, always visible
Solution 6: Body-Level Scrolling
Makes Modal.body scrollable instead of modalContent, footer always visible
Solution 7: Viewport-Based Height (100dvh)
Uses 100dvh for dynamic viewport height, better mobile browser support
Solution 8: VRBO Structure - Footer as Sibling
Footer is sibling to scrollable container (VRBO pattern), always visible
Solution 9: VRBO Structure with Fixed Footer
VRBO structure plus position: fixed on footer for extra assurance
Solution 10: VRBO Structure + Absolute Availability Feedback
Solution 9 with availability feedback absolutely positioned above footer, always visible
What to Test
- Open the modal on a mobile device
- Scroll through the calendar
- Verify the "Done" button remains visible at the bottom
- Check that flexibility chips are also visible
- Ensure the button is accessible and clickable