Skip to content

Commit 2b3e509

Browse files
committed
Revert "fix(#3622): apply new design system theme changes to home page"
This reverts commit 9a2f971.
1 parent 8e355bf commit 2b3e509

File tree

3 files changed

+3
-19
lines changed

3 files changed

+3
-19
lines changed

govtool/frontend/src/components/atoms/Typography.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ export const Typography = ({
1212
headline3: 36,
1313
headline4: 32,
1414
headline5: 28,
15-
title: 27,
1615
title1: 24,
17-
titleH3: 23,
1816
title2: 22,
19-
body: 21,
2017
body1: 16,
2118
body2: 14,
2219
caption: 12,
@@ -28,11 +25,8 @@ export const Typography = ({
2825
headline3: 400,
2926
headline4: 600,
3027
headline5: 500,
31-
title: 500,
3228
title1: 400,
33-
titleH3: 500,
3429
title2: 500,
35-
body: 400,
3630
body1: 600,
3731
body2: 500,
3832
caption: 400,
@@ -44,11 +38,8 @@ export const Typography = ({
4438
headline3: "44px",
4539
headline4: "40px",
4640
headline5: "36px",
47-
title: "32px",
48-
titleH3: "32px",
4941
title1: "32px",
5042
title2: "28px",
51-
body: "28px",
5243
body1: "24px",
5344
body2: "20px",
5445
caption: "16px",

govtool/frontend/src/components/atoms/types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,8 @@ export type TypographyProps = Pick<
3232
| "headline3"
3333
| "headline4"
3434
| "headline5"
35-
| "title"
36-
| "titleH3"
3735
| "title1"
3836
| "title2"
39-
| "body"
4037
| "body1"
4138
| "body2"
4239
| "caption";

govtool/frontend/src/components/organisms/UsefulLinks.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ export const UsefulLinks = ({ align = "left" }: Props) => {
5353
backgroundColor: "white",
5454
}}
5555
>
56-
<Typography component="h3" variant="titleH3">
56+
<Typography>
5757
{t(`usefulLinks.${key as keyof typeof LINKS}.title`)}
5858
</Typography>
59-
<Typography variant="body" sx={{ mb: 1 }}>
59+
<Typography variant="caption" sx={{ mb: 1 }}>
6060
{t(`usefulLinks.${key as keyof typeof LINKS}.description`)}
6161
</Typography>
6262
<Link
@@ -74,11 +74,7 @@ export const UsefulLinks = ({ align = "left" }: Props) => {
7474
},
7575
}}
7676
>
77-
<Typography
78-
color="primary"
79-
variant="body2"
80-
sx={{ fontSize: "21px" }}
81-
>
77+
<Typography color="primary" variant="body2">
8278
{t(`usefulLinks.${key as keyof typeof LINKS}.link`)}
8379
</Typography>
8480
<img

0 commit comments

Comments
 (0)