Skip to content

Commit d151378

Browse files
committed
use correct font size and alignment
1 parent e58d335 commit d151378

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

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

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { css } from '@emotion/react';
2-
import { from, palette, space, textSans20 } from '@guardian/source/foundations';
2+
import { from, palette, space, textSans14 } from '@guardian/source/foundations';
33
import { Link, SvgInfoRound } from '@guardian/source/react-components';
44
import { center } from '../lib/center';
55
import {
@@ -26,28 +26,24 @@ const content = css`
2626
display: flex;
2727
justify-content: space-between;
2828
padding: 10px;
29-
align-items: flex-start;
29+
align-items: center;
3030
${center};
3131
3232
${from.mobileLandscape} {
3333
padding: 10px ${space[5]}px;
3434
}
35-
36-
${from.phablet} {
37-
align-items: center;
38-
}
3935
`;
4036

4137
const textAndLink = css`
4238
display: flex;
4339
flex-direction: row;
44-
align-items: flex-start;
40+
align-items: center;
4541
gap: ${space[3]}px;
46-
${textSans20};
42+
${textSans14};
4743
4844
/* Override Source Link font styles */
4945
a {
50-
${textSans20};
46+
${textSans14};
5147
}
5248
`;
5349

@@ -93,12 +89,10 @@ export const EditionSwitcherBanner = ({ pageId, edition }: Props) => {
9389
<aside data-component="edition-switcher-banner" css={container}>
9490
<div css={content}>
9591
<div css={textAndLink}>
96-
<div>
97-
<SvgInfoRound
98-
size="small"
99-
theme={{ fill: palette.brand[400] }}
100-
/>
101-
</div>
92+
<SvgInfoRound
93+
size="medium"
94+
theme={{ fill: palette.brand[400] }}
95+
/>
10296
<p>
10397
You are viewing the {defaultEditionName} homepage&nbsp;
10498
<Link

0 commit comments

Comments
 (0)