File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
dotcom-rendering/src/components Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments