Closed hippee-lee closed 1 year ago
Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.
Describe the bug
Core web components should support
cds-layout
styles for content projected into cds-card slots. When using CdsCard with a vertical layout, slotted elements do not respond to any of thecds-layout
style or spaces.How to reproduce
Here is a simple stackblitz with one card and several items projected.
Expected behavior
When projecting elements into a
cds-card
with the attributecds-layout="vertical align:fill gap:lg"
e.g when writing something like this:In this case, the children elements (respectively: span, ul, cds-divider, div) should have core styles for: vertical, align:fill and gap:lg applied.
Versions
Clarity project:
Clarity version:
Framework:
n/a
Other
See CdsNavigation demos for example of expected behavior. Items projected into cds-navigation can use any of the cds-layout tokens to control the layout, spacing and alignment of projected elements. CdsCard should follow this pattern similar to navigation and other components.