Skip to content

Commit bb9db76

Browse files
committed
update grid area and margins to align the container branding with card edges from tablet
1 parent 377a92c commit bb9db76

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dotcom-rendering/src/components/FrontSection.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,16 @@ const labsSectionHeaderStyles = css`
497497

498498
const sponsoredContentLabelWrapper = css`
499499
grid-row: bottom-content;
500+
grid-column: content;
501+
502+
margin: ${space[1]}px 0 0;
503+
${from.tablet} {
504+
/*
505+
* side margins of 10px due to the -10px margins on the
506+
* grid area for content, to align with the card edges
507+
*/
508+
margin: ${space[1]}px 10px 0;
509+
}
500510
`;
501511

502512
/**
@@ -815,6 +825,7 @@ export const FrontSection = ({
815825
/>
816826
</Island>
817827
) : null}
828+
818829
{isLabs &&
819830
collectionBranding?.kind === 'paid-content' &&
820831
!collectionBranding.hasMultipleBranding && (
@@ -831,6 +842,7 @@ export const FrontSection = ({
831842
/>
832843
</div>
833844
)}
845+
834846
{pagination && (
835847
<FrontPagination
836848
sectionName={pagination.sectionName}

0 commit comments

Comments
 (0)