-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create generic item layout component #6743
Comments
cc @geospatialem @jcfranco can we get this triaged? |
Does it complicate this unnecessarily to have a |
I'm not sure it needs a parent since this layout component since wherever its slotted should handle that. |
@driskull You thinking for the May release? |
yeah that sounds good |
#6903) **Related Issue:** #6743 #5664 ## Summary - Adds new component `Stack` to render a row of actions and content. - Can be used to slot into places where no layout options are present. - Can be used to disable specific parts of slotted content. ## Background This will help users be able to layout content that is slotted within a panel footer for example. - The panel footer slot doesn't offer a way to slot things at the start or end and this would allow them the ability to do that without having to dig into CSS or apply padding. It will also allow a use to disable specific parts within the component if necessary since some parent components don't allow disabling partial UI. - Instead of disabling the component, the user would use this component and slot it into the component. The user can disable only a portion of slotted content inside this component. ## Questions - Name of this component
Verified on
Example use: <calcite-panel>
<div slot="header-content">Panel</div>
<p>Content</p>
<calcite-stack slot="footer">
<calcite-action text="select" icon="check" slot="actions-start"></calcite-action>
<calcite-input disabled></calcite-input>
<calcite-avatar slot="content-start" thumbnail="http://placekitten.com/105/105" scale="s"> </calcite-avatar>
<calcite-chip slot="content-end" value="chip" scale="s" appearance="outline">A chip</calcite-chip>
<calcite-action text="delete" icon="trash" slot="actions-end"></calcite-action>
</calcite-stack>
</calcite-panel> |
cc @SkyeSeitz @ashetland for Figma changes. |
Description
Create generic item layout component
This component would have the following slots to allow users to layout content better...
User Stories
This will help users be able to layout content that is slotted within a panel footer for example. It will also allow a use to disable specific parts within the component if necessary since some parent components don't allow disabling partial UI.
Acceptance Criteria
Name of component can be decided later.
Relevant Info
-(default slot) for cotent
related to #5664
Helpful Details
This would be able to emulate the layout of a calcite-panel header or a calcite-list-item
Priority impact
p2 - want for current milestone
Esri team
N/A
The text was updated successfully, but these errors were encountered: