From 37e82b70fa3dd9aeebc909fb4beb162a29296201 Mon Sep 17 00:00:00 2001 From: Kelsey Jackson Date: Wed, 21 May 2025 13:03:11 -0500 Subject: [PATCH] updated card slot from `image` to `media` (#975) * updated card slot from to * missed a wildcard * updated changelog --- docs/docs/components/card.md | 41 +++++++++++-------- .../components/page-samples/documentation.md | 6 +-- docs/docs/components/page.md | 6 +-- docs/docs/experimental/themer.md | 6 +-- docs/docs/patterns/blog-news/category-list.md | 12 +++--- docs/docs/patterns/blog-news/newsletter.md | 2 +- docs/docs/patterns/blog-news/post-footer.md | 12 +++--- docs/docs/patterns/blog-news/post-list.md | 8 ++-- docs/docs/patterns/blog-news/social-share.md | 2 +- .../patterns/ecommerce/category-preview.md | 6 +-- docs/docs/patterns/ecommerce/product-list.md | 16 ++++---- docs/docs/resources/changelog.md | 3 +- docs/docs/themes/preview/content.njk | 6 +-- docs/docs/utilities/frame.md | 6 +-- src/components/card/card.css | 16 ++++---- src/components/card/card.test.ts | 18 ++++---- src/components/card/card.ts | 12 +++--- 17 files changed, 94 insertions(+), 84 deletions(-) diff --git a/docs/docs/components/card.md b/docs/docs/components/card.md index dc607939e..dda37916e 100644 --- a/docs/docs/components/card.md +++ b/docs/docs/components/card.md @@ -8,7 +8,7 @@ icon: card ```html {.example} A kitten sits patiently between a terracotta pot and decorative grasses. @@ -38,7 +38,7 @@ Basic cards aren't very exciting, but they can display any content you want them ```html {.example} - This is just a basic card. No image, no header, and no footer. Just your content. + This is just a basic card. No media, no header, and no footer. Just your content. ``` -### Images +### Media -Card images are displayed atop the card and will stretch to fit. -If using SSR, you need to also use the `with-image` attribute to add an image to the card (if not, it is added automatically). +Card media is displayed atop the card and will stretch to fit. +If using SSR, you need to also use the `with-media` attribute to add a media section to the card (if not, it is added automatically). ```html {.example} - - A kitten walks towards camera on top of pallet. - This is a kitten, but not just any kitten. This kitten likes walking along pallets. - + @@ -161,7 +170,7 @@ Use the `appearance` attribute to change the card's visual appearance.