Skip to content

Commit 3e4cb4f

Browse files
committed
only move position of card branding if the card is not onwards content
1 parent 1ffdb2f commit 3e4cb4f

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

dotcom-rendering/src/components/Card/Card.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,9 @@ export const Card = ({
11641164
age={decideAge()}
11651165
commentCount={<CommentCount />}
11661166
cardBranding={
1167-
!showLabsRedesign && branding
1167+
(isOnwardContent ||
1168+
!showLabsRedesign) &&
1169+
branding
11681170
? getBranding()
11691171
: undefined
11701172
}
@@ -1274,6 +1276,7 @@ export const Card = ({
12741276
</div>
12751277

12761278
{showLabsRedesign &&
1279+
!isOnwardContent &&
12771280
format.theme === ArticleSpecial.Labs &&
12781281
branding &&
12791282
getBranding()}

dotcom-rendering/src/components/SponsoredContentLabel.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ const labelStyles = css`
3434
`;
3535

3636
const wrapperStyles = css`
37+
padding-top: ${space[1]}px;
3738
display: flex;
38-
gap: ${space[2]}px;
3939
justify-content: end;
40-
height: 60px;
4140
`;
4241

4342
const horizontalStyles = css`
4443
align-items: center;
44+
gap: ${space[2]}px;
4545
`;
4646

4747
const verticalStyles = {
@@ -55,6 +55,7 @@ const verticalStyles = {
5555
};
5656

5757
const linkStyles = css`
58+
height: 60px;
5859
/* See: https://css-tricks.com/nested-links/ */
5960
z-index: ${getZIndex('card-nested-link')};
6061
`;

0 commit comments

Comments
 (0)