diff --git a/dotcom-rendering/src/components/FrontSection.tsx b/dotcom-rendering/src/components/FrontSection.tsx index d941af44b61..658286ebbce 100644 --- a/dotcom-rendering/src/components/FrontSection.tsx +++ b/dotcom-rendering/src/components/FrontSection.tsx @@ -463,15 +463,7 @@ const sideBorders = css` } `; -const topBorder = css` - border-top-style: solid; -`; - -const bottomPadding = css` - padding-bottom: ${space[9]}px; -`; - -const bottomPaddingFrontContainer = ( +const bottomPadding = ( useLargeSpacingMobile: boolean, useLargeSpacingDesktop: boolean, ) => css` @@ -645,7 +637,6 @@ export const FrontSection = ({ }: Props) => { const isToggleable = toggleable && !!sectionId; const showVerticalRule = !hasPageSkin; - const isFrontContainer = containerLevel !== undefined; const useLargeSpacingMobile = !!isNextCollectionPrimary || isAboveMobileAd; const useLargeSpacingDesktop = @@ -684,7 +675,7 @@ export const FrontSection = ({ ), }} > - {isFrontContainer && showTopBorder && ( + {showTopBorder && (
)} - + {isLabs ? (