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`
115
115
display : block;
116
116
` ;
117
117
118
- const topAboveNavContainerVaraintStyles = css `
118
+ const topAboveNavContainerVariantStyles = css `
119
119
padding-bottom : ${ space [ 5 ] } px;
120
120
position : relative;
121
121
margin : 0 auto;
@@ -128,6 +128,20 @@ const topAboveNavContainerVaraintStyles = css`
128
128
& [top-above-nav-ad-rendered = 'true' ] {
129
129
min-height : auto;
130
130
}
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
+ }
131
145
` ;
132
146
133
147
/**
@@ -600,7 +614,7 @@ export const AdSlot = ({
600
614
< AdSlotWrapper
601
615
css = {
602
616
isIn250ReservationVariant
603
- ? topAboveNavContainerVaraintStyles
617
+ ? topAboveNavContainerVariantStyles
604
618
: topAboveNavContainerStyles
605
619
}
606
620
>
You can’t perform that action at this time.
0 commit comments