Skip to content

Commit 4cfa0bd

Browse files
committed
Separate the background styles in its own variable
1 parent d7385e9 commit 4cfa0bd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ const topAboveNavContainerVariantStyles = css`
128128
&[top-above-nav-ad-rendered='true'] {
129129
min-height: auto;
130130
}
131+
`;
131132

133+
const topAboveNavBackgroundVariantStyles = css`
132134
.ad-slot--top-above-nav:not([data-google-query-id]) {
133135
margin: 24px auto 0;
134136
height: 250px;
@@ -607,7 +609,10 @@ export const AdSlot = ({
607609
<AdSlotWrapper
608610
css={
609611
isIn250ReservationVariant
610-
? topAboveNavContainerVariantStyles
612+
? [
613+
topAboveNavContainerVariantStyles,
614+
topAboveNavBackgroundVariantStyles,
615+
]
611616
: topAboveNavContainerStyles
612617
}
613618
>

0 commit comments

Comments
 (0)