diff --git a/dotcom-rendering/src/components/ExpandableMarketingCard.tsx b/dotcom-rendering/src/components/ExpandableMarketingCard.tsx index 2fe5e4eb31a..01546958e18 100644 --- a/dotcom-rendering/src/components/ExpandableMarketingCard.tsx +++ b/dotcom-rendering/src/components/ExpandableMarketingCard.tsx @@ -16,7 +16,6 @@ import { SvgCross, } from '@guardian/source/react-components'; import type { Dispatch, SetStateAction } from 'react'; -import { getZIndex } from '../lib/getZIndex'; import { palette } from '../palette'; import { useConfig } from './ConfigContext'; @@ -43,17 +42,6 @@ const fillBarStyles = css` } `; -const containerStyles = css` - ${getZIndex('expandableMarketingCardOverlay')} - position: sticky; - top: 0; - - ${from.leftCol} { - padding-bottom: ${space[5]}px; - margin-right: -1px; /* To align with rich link - if we move this feature to production, we should remove this and make rich link align with everything instead */ - } -`; - const contentStyles = css` position: relative; display: flex; @@ -121,8 +109,16 @@ const detailsStyles = css` flex-direction: column; gap: ${space[4]}px; margin-bottom: ${space[2]}px; +`; - h2 { +const sectionStyles = css` + display: flex; + flex-direction: column; + gap: ${space[3]}px; + border-top: 1px solid ${neutral[100]}; + padding-top: ${space[2]}px; + + h3 { ${headlineBold17}; } @@ -133,14 +129,6 @@ const detailsStyles = css` } `; -const sectionStyles = css` - display: flex; - flex-direction: column; - gap: ${space[3]}px; - border-top: 1px solid ${neutral[100]}; - padding-top: ${space[2]}px; -`; - const imageTopStyles = css` position: absolute; top: 0; @@ -154,6 +142,15 @@ const imageBottomStyles = css` const buttonStyles = css` z-index: 1; + background-color: ${palette( + '--expandable-marketing-card-button-background', + )}; + width: fit-content; + + ${textSansBold12}; + ${from.wide} { + ${textSansBold14}; + } `; interface Props { @@ -175,90 +172,98 @@ export const ExpandableMarketingCard = ({ setIsClosed, }: Props) => { return ( -
- With no billionaire owner or shareholders, our - journalism is funded by readers -
-- With misinformation threatening democracy, we - keep our fact-based news paywall-free -
-- With 200 years of history and staff across - America and the world, we offer an outsider - perspective on US news -
-+ With no billionaire owner or shareholders, + our journalism is funded by readers +
++ With misinformation threatening democracy, + we keep our fact-based news paywall-free +
++ With 200 years of history and staff across + America and the world, we offer an outsider + perspective on US news +
+