Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 150e977

Browse files
author
Germain
authored
Fix changelog dialog heading size (#11286)
1 parent 42d8e4f commit 150e977

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/components/views/dialogs/ChangelogDialog.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import React from "react";
2020
import { _t } from "../../../languageHandler";
2121
import QuestionDialog from "./QuestionDialog";
2222
import Spinner from "../elements/Spinner";
23+
import Heading from "../typography/Heading";
2324

2425
interface IProps {
2526
newVersion: string;
@@ -100,7 +101,9 @@ export default class ChangelogDialog extends React.Component<IProps, State> {
100101
}
101102
return (
102103
<div key={repo}>
103-
<h2>{repo}</h2>
104+
<Heading as="h2" size="4">
105+
{repo}
106+
</Heading>
104107
<ul>{content}</ul>
105108
</div>
106109
);

test/components/views/dialogs/__snapshots__/ChangelogDialog-test.tsx.snap

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ exports[`<ChangelogDialog /> should fetch github proxy url for each repo with ol
3838
class="mx_ChangelogDialog_content"
3939
>
4040
<div>
41-
<h2>
41+
<h2
42+
class="mx_Heading_h4"
43+
>
4244
vector-im/element-web
4345
</h2>
4446
<ul>
@@ -56,7 +58,9 @@ exports[`<ChangelogDialog /> should fetch github proxy url for each repo with ol
5658
</ul>
5759
</div>
5860
<div>
59-
<h2>
61+
<h2
62+
class="mx_Heading_h4"
63+
>
6064
matrix-org/matrix-react-sdk
6165
</h2>
6266
<ul>
@@ -74,7 +78,9 @@ exports[`<ChangelogDialog /> should fetch github proxy url for each repo with ol
7478
</ul>
7579
</div>
7680
<div>
77-
<h2>
81+
<h2
82+
class="mx_Heading_h4"
83+
>
7884
matrix-org/matrix-js-sdk
7985
</h2>
8086
<ul>

0 commit comments

Comments
 (0)