The panel and shell-panel components' action-bar slot currently hides slotted elements that are not a <calcite-action-bar>. However, in apps where it is beneficial to have the action-bar as a reusable component, it may not be possible to slot the action-bar element directly (e.g. Stencil).
The requested functionality is to add support to this slot for a nested action-bar.
Acceptance Criteria
Any Calcite component that supports the action-bar slot should supports both:
[x] A slotted <calcite-action-bar> element (no regression).
[ ] A slotted element that contains a descendent <calcite-action-bar> element.
[ ] If multiple action bar descendants are found, stack them vertically the same as if multiple <calcite-action-bar> elements were slotted.
[ ] Optionally opinionated on what display the slotted element has (i.e. contents).
Relevant Info
No response
Which Component
The panel and shell-panel components with impact to:
Instead of checking for the "correct" element, we should probably render whatever folks put there and rely on documentation / guidelines (along with the prescriptive slot names) for implementation patterns.
Check existing issues
Description
The
panel
andshell-panel
components'action-bar
slot currently hides slotted elements that are not a<calcite-action-bar>
. However, in apps where it is beneficial to have the action-bar as a reusable component, it may not be possible to slot the action-bar element directly (e.g. Stencil).The requested functionality is to add support to this slot for a nested action-bar.
Acceptance Criteria
Any Calcite component that supports the
action-bar
slot should supports both:<calcite-action-bar>
element (no regression).<calcite-action-bar>
element.<calcite-action-bar>
elements were slotted.display
the slotted element has (i.e.contents
).Relevant Info
No response
Which Component
The
panel
andshell-panel
components with impact to:dialog
flow-item
Example Use Case
Priority impact
impact - p1 - need for current milestone
Calcite package
Esri team
ArcGIS Field Apps