From 114dae995ee7ee6135322772857d07bc7be3fadf Mon Sep 17 00:00:00 2001 From: SebiVPS <42858722+SebiVPS@users.noreply.github.com> Date: Mon, 13 Jan 2025 11:29:09 +0100 Subject: [PATCH] Demo Site: fix teaser item style (#3091) --- .../pages/blocks/TeaserItemBlock.tsx | 41 +++++++++---------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/demo/site/src/documents/pages/blocks/TeaserItemBlock.tsx b/demo/site/src/documents/pages/blocks/TeaserItemBlock.tsx index a5f5a1e530..bb07977cd0 100644 --- a/demo/site/src/documents/pages/blocks/TeaserItemBlock.tsx +++ b/demo/site/src/documents/pages/blocks/TeaserItemBlock.tsx @@ -14,37 +14,36 @@ const descriptionRenderers: Renderers = { export const TeaserItemBlock = withPreview( ({ data: { media, title, description, link } }: PropsWithData) => ( - - - - - - - - - - {title} - - - - - - {link.text} - - - - + + + + + + + + + {title} + + + + + + {link.text} + + + ), { label: "Teaser Item" }, ); -const ItemContent = styled.a` +const Link = styled(LinkBlock)` text-decoration: none; cursor: pointer; display: flex; flex: 1; flex-direction: row; gap: ${({ theme }) => theme.spacing.S300}; + color: ${({ theme }) => theme.palette.text.primary}; ${({ theme }) => theme.breakpoints.sm.mediaQuery} { flex: unset;