-
Notifications
You must be signed in to change notification settings - Fork 0
COMPONENT: ListCard Component #51
Copy link
Copy link
Labels
enhancementNew feature or requestNew feature or requesttype: componentA reusable UI component (design system or feature-specific)A reusable UI component (design system or feature-specific)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesttype: componentA reusable UI component (design system or feature-specific)A reusable UI component (design system or feature-specific)
Type
Fields
Give feedbackNo fields configured for Task.
Projects
Status
Done
Task: ListCard Component
Type: Component
Milestone: M0.5 — Shared Component Library
Estimate: S
Component Type
Props Interface
Variants / States
headerslot renders. Body and footer hidden.children) + footer all render. Border upgrades to--border-primary+--shadow-md.--border-secondaryon hover, pointer cursor — only whenisClickableis trueAcceptance Criteria
header— no empty body div left in DOMfooterslot only renders when both provided ANDisExpandedis trueonTogglefires on click of the card root — not on clicks inside footer buttons (stopPropagation handled internally)isExpandedis trueisClickableis trueCardbase — does not duplicate any styling from itNotes
ReportCardandUserCard(M2) both compose this — validate slot API againstReportCard's needs before signing offstopPropagationon footer click must be handled here, not in every consumer — clicking "Ban author" must not toggle the card closed