Closed iyouth23 closed 1 month ago
+1 for Dashboards.
We'd like to be able to make the header-content in dialog full width to have centered titles, as was possible with modal.
Installed and assigned for verification.
Verified with the Chromatic build
Check existing issues
Description
AGOL Map Viewer would like the
header-content
slot ofcalcite-panel
to allow for a custom width. This can be achieved by settingflex: 1 1 auto;
to.header-content
in thepanel
component: https://github.com/Esri/calcite-design-system/blob/dev/packages/calcite-components/src/components/panel/panel.scss#L182-L185.This enhancement is important because after migrating from
calcite-modal
tocalcite-dialog
, we can no longer customize the width of theheader-content
slot. This was previously allowed withcalcite-modal
since the header slot was not wrapped within acalcite-panel
, but to my knowledge we can no longer just set the header slot to, for example,width: 50%
.Acceptance Criteria
Within a
calcite-dialog
, Map Viewer needs a way to set the width of thecalcite-panel
header to50%
, or have it extend until the inline editable content reaches the Close button on the right: https://codepen.io/iyouth66/pen/oNKNqxy.(Example using
calcite-modal
for comparison: https://codepen.io/iyouth66/pen/bGXGKpj)Relevant Info
cc @AdelheidF
Which Component
calcite-panel
Example Use Case
https://codepen.io/iyouth66/pen/oNKNqxy
Priority impact
impact - p1 - need for current milestone
Calcite package
Esri team
ArcGIS Online