Esri / calcite-design-system

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

[Panel] Add `-space` css properties for `header-content` slot #8907

Open macandcheese opened 5 months ago

macandcheese commented 5 months ago

Check existing issues

Description

It is common to slot rich content into the header-content slot of a Panel. Currently, they have baked-in padding that isn't always desirable - where slotted items are intended to be full-height.

I'd like to have the ability to remove this with a calcite-panel-header-content-space (or similarly named) css property.

Acceptance Criteria

I have the ability to control the padding of the slots mentioned above.

Example Use Case

Screenshot 2024-03-07 at 9 19 06 PM Screenshot 2024-03-07 at 9 20 15 PM

Priority impact

p4 - not time sensitive

Calcite package

Esri team

Calcite (design)

macandcheese commented 5 months ago

Seems like --calcite-panel-footer-space already exists, missed that. Request stands for header-content 😄