From a5a823e3c2fe6cfd66bfe77b8172dca22a91d849 Mon Sep 17 00:00:00 2001 From: david ornelas Date: Wed, 18 Mar 2026 17:02:58 -0700 Subject: [PATCH 1/6] feat(unity-react-core): update event and news cards --- .../src/components/Card/Card.jsx | 92 ++++++++++++------- .../src/components/Card/Card.stories.jsx | 61 +++++++----- 2 files changed, 99 insertions(+), 54 deletions(-) diff --git a/packages/unity-react-core/src/components/Card/Card.jsx b/packages/unity-react-core/src/components/Card/Card.jsx index 990516f3fe..b612114cbd 100644 --- a/packages/unity-react-core/src/components/Card/Card.jsx +++ b/packages/unity-react-core/src/components/Card/Card.jsx @@ -188,14 +188,24 @@ const BaseCard = ({ return ( <> - {!!image && ( + {type === "event" || type === "news" ? ( + !!image && ( + {imageAltText} + ) + ) : ( {imageAltText} )} {!image && icon && ( @@ -313,42 +323,62 @@ const CardContent = ({ eventLocation={eventLocation} /> )} - {buttons && ( -
- {buttons.map(button => ( -
- {/* @ts-ignore */} -
- ))} -
- )} - {linkUrl && linkLabel && ( + {(type === "event" || type === "news") && cardLink ? (
- {linkLabel} + +