Esri / calcite-design-system

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

[Shell / Shell Panel] When `content-behind` is set, Shell Panel in slot "panel-bottom" can position incorrectly #8269

Open macandcheese opened 7 months ago

macandcheese commented 7 months ago

Check existing issues

Actual Behavior

When Shell has content-behind set, a Shell Panel of in slot "panel-bottom" with displayMode="float" will not display properly if there is not content slotted in "panel-top".

Expected Behavior

I'd expect the slotted "panel-bottom" content to always position in the bottom, without the need to populate "panel-top".

Reproduction Sample

https://codepen.io/mac_and_cheese/pen/bGzjMLg?editors=1100

Reproduction Steps

  1. Open Codepen
  2. See incorrectly positioned "bottom panel"
  3. Uncomment collapsed "top panel"
  4. See positioning is correct

Reproduction Version

1.10

Relevant Info

There are some inconsistencies with how this behaves when content-behind is set, or unset.

Regression?

No response

Priority impact

p3 - want for upcoming milestone

Impact

No response

Calcite package

Esri team

Calcite (design)

macandcheese commented 6 months ago

The workaround is to have a collapsed Shell Panel, in the panel-top slot.