Skip to content

Commit

Permalink
Prevent sublink styles from being overridden if applied
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmockett committed Oct 15, 2024
1 parent 2895fc7 commit 9579187
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions dotcom-rendering/src/components/CardHeadline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,27 +301,27 @@ export const CardHeadline = ({
className={`${
isSublink ? 'card-sublink-headline' : 'card-headline'
}`}
css={[
format.theme !== ArticleSpecial.Labs &&
fontStylesOnMobile({
size: sizeOnMobile ?? size,
boostedFontSizes,
}),

format.theme !== ArticleSpecial.Labs &&
fontStylesOnTablet({
size: sizeOnTablet,
boostedFontSizes,
}),
format.theme === ArticleSpecial.Labs
? labTextStyles(size)
: fontStyles({ size, boostedFontSizes }),
isSublink &&
size === 'tiny' &&
css`
${textSans14}
`,
]}
css={
isSublink && size === 'tiny'
? css`
${textSans14}
`
: [
format.theme !== ArticleSpecial.Labs &&
fontStylesOnMobile({
size: sizeOnMobile ?? size,
boostedFontSizes,
}),
format.theme !== ArticleSpecial.Labs &&
fontStylesOnTablet({
size: sizeOnTablet,
boostedFontSizes,
}),
format.theme === ArticleSpecial.Labs
? labTextStyles(size)
: fontStyles({ size, boostedFontSizes }),
]
}
>
{!!kickerText && (
<Kicker
Expand Down

0 comments on commit 9579187

Please sign in to comment.