Skip to content

Commit a4cfdde

Browse files
deedeehmarjisound
authored andcommitted
Update logo label to be bold
1 parent fa86c04 commit a4cfdde

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

dotcom-rendering/src/components/Branding.importable.tsx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
breakpoints,
55
from,
66
textSans12,
7+
textSansBold12,
78
} from '@guardian/source/foundations';
89
import {
910
ArticleDesign,
@@ -50,14 +51,18 @@ const labelAdvertisingPartnerStyle = css`
5051
padding-bottom: 1px;
5152
`;
5253

53-
const labelStyle = css`
54-
${textSans12}
55-
color: ${palette('--branding-label-text')};
54+
const labelStyle = (design: ArticleDesign) => {
55+
const fontStyle =
56+
design === ArticleDesign.Gallery ? textSansBold12 : textSans12;
57+
return css`
58+
${fontStyle}
59+
color: ${palette('--branding-label-text')};
5660
57-
a {
58-
color: inherit;
59-
}
60-
`;
61+
a {
62+
color: inherit;
63+
}
64+
`;
65+
};
6166

6267
const liveBlogLabelStyle = css`
6368
color: ${palette('--standfirst-text')};
@@ -234,7 +239,7 @@ export const Branding = ({ branding, format }: Props) => {
234239
>
235240
<div
236241
css={[
237-
labelStyle,
242+
labelStyle(format.design),
238243
isAdvertisingPartnerOrExclusive &&
239244
labelAdvertisingPartnerStyle,
240245
isLiveBlog && liveBlogLabelStyle,

0 commit comments

Comments
 (0)