Panel - allow customizing width of header-content
slot
#10385
Labels
4 - verified
Issues that have been released and confirmed resolved.
ArcGIS Dashboards
Issues logged by ArcGIS Dashboards team members.
ArcGIS Online
Issues logged by ArcGIS Online team members.
calcite-components
Issues specific to the @esri/calcite-components package.
enhancement
Issues tied to a new feature or request.
estimate - 3
A day or two of work, likely requires updates to tests.
impact - p1 - need for current milestone
User set priority impact status of p1 - need for current milestone
p - high
Issue should be addressed in the current milestone, impacts component or core functionality
Milestone
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
The text was updated successfully, but these errors were encountered: