Skip to content

Commit 1494f6e

Browse files
authored
Merge branch 'main' into ph-20250731-1412-investigation-p3
2 parents 4b607e1 + 1f7292e commit 1494f6e

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

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

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ const topAboveNavContainerStyles = css`
115115
display: block;
116116
`;
117117

118-
const topAboveNavContainerVaraintStyles = css`
118+
const topAboveNavContainerVariantStyles = css`
119119
padding-bottom: ${space[5]}px;
120120
position: relative;
121121
margin: 0 auto;
@@ -128,6 +128,20 @@ const topAboveNavContainerVaraintStyles = css`
128128
&[top-above-nav-ad-rendered='true'] {
129129
min-height: auto;
130130
}
131+
132+
/* Ad placeholder grey box rendered while loading the ad */
133+
&:not([top-above-nav-ad-rendered='true']) {
134+
::before {
135+
content: '';
136+
position: absolute;
137+
height: 250px;
138+
width: 970px;
139+
top: ${labelHeight}px;
140+
left: 50%;
141+
transform: translateX(-50%);
142+
background-color: ${palette.neutral[93]};
143+
}
144+
}
131145
`;
132146

133147
/**
@@ -600,7 +614,7 @@ export const AdSlot = ({
600614
<AdSlotWrapper
601615
css={
602616
isIn250ReservationVariant
603-
? topAboveNavContainerVaraintStyles
617+
? topAboveNavContainerVariantStyles
604618
: topAboveNavContainerStyles
605619
}
606620
>

0 commit comments

Comments
 (0)