Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
274 stars 75 forks source link

[modal / date-picker] Calendar can be hidden by modal #9016

Closed gpbmike closed 4 months ago

gpbmike commented 4 months ago

Check existing issues

Actual Behavior

The calendar of a <calcite-input-date-picker> component can be hidden if it is opened in a modal.

image

Expected Behavior

I would expect the calendar to not be contained inside the modal like the native date picker.

image

Reproduction Sample

https://codepen.io/gpbmike/pen/qBwPbvp?editors=1000

Reproduction Steps

Add <calcite-input-date-picker> to "content" slot of <calcite-modal>.

Reproduction Version

2.7.0

Relevant Info

Chrome 123.0 MacOS 14.3.1

Regression?

No response

Priority impact

p4 - not time sensitive

Impact

We use the native date picker instead.

Calcite package

Esri team

ArcGIS Site Scan

macandcheese commented 4 months ago

You can use overlay-positioning="fixed" to escape the Modal container: https://codepen.io/mac_and_cheese/pen/ExJwKLR?editors=1000

gpbmike commented 4 months ago

You can use overlay-positioning="fixed" to escape the Modal container: https://codepen.io/mac_and_cheese/pen/ExJwKLR?editors=1000

Awesome. Forgot about that. Thanks.