Skip to content

Commit 13669de

Browse files
committed
Added top-above-nav background placeholder
Co-authored-by: Onye Anuna <[email protected]>
1 parent 4703f58 commit 13669de

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

dotcom-rendering/src/components/AdSlot.web.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,15 @@ const crosswordBannerMobileAdStyles = css`
405405
min-height: ${getMinHeight(adSizes.mobilesticky.height)}px;
406406
`;
407407

408+
const topAboveNavBackground = css`
409+
.ad-slot--top-above-nav:not([data-google-query-id]) {
410+
margin: 0 auto;
411+
height: ${getMinHeight(250)}px;
412+
width: 970px;
413+
background-color: ${palette.neutral[93]};
414+
}
415+
`;
416+
408417
const AdSlotWrapper = ({
409418
children,
410419
css: additionalCss,
@@ -598,11 +607,12 @@ export const AdSlot = ({
598607
case 'top-above-nav': {
599608
return (
600609
<AdSlotWrapper
601-
css={
610+
css={[
602611
isIn250ReservationVariant
603612
? topAboveNavContainerVaraintStyles
604-
: topAboveNavContainerStyles
605-
}
613+
: topAboveNavContainerStyles,
614+
topAboveNavBackground,
615+
]}
606616
>
607617
<div
608618
id="dfp-ad--top-above-nav"

0 commit comments

Comments
 (0)