1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-08-07 21:23:00 +03:00

Compound Typography pass regression fixes (#11189)

* Compound Typography pass regression fixes

* updates to the room list sizing

* fix subtitle clipping

* revert display name to use medium variant
This commit is contained in:
Germain
2023-07-04 17:54:28 +01:00
committed by GitHub
parent 3ad9a8fe3b
commit 2a7780052e
32 changed files with 50 additions and 44 deletions

View File

@@ -75,7 +75,7 @@ describe("<UserSettingsDialog />", () => {
const getActiveTabLabel = (container: Element) =>
container.querySelector(".mx_TabbedView_tabLabel_active")?.textContent;
const getActiveTabHeading = (container: Element) =>
container.querySelector(".mx_SettingsSection .mx_Heading_h2")?.textContent;
container.querySelector(".mx_SettingsSection .mx_Heading_h3")?.textContent;
it("should render general settings tab when no initialTabId", () => {
const { container } = render(getComponent());

View File

@@ -18,7 +18,7 @@ exports[`<ChangelogDialog /> should fetch github proxy url for each repo with ol
class="mx_Dialog_header mx_Dialog_headerWithCancel"
>
<h2
class="mx_Heading_h4 mx_Dialog_title"
class="mx_Heading_h3 mx_Dialog_title"
id="mx_BaseDialog_title"
>
Changelog

View File

@@ -17,7 +17,7 @@ exports[`DevtoolsDialog renders the devtools dialog 1`] = `
class="mx_Dialog_header mx_Dialog_headerWithCancel"
>
<h2
class="mx_Heading_h4 mx_Dialog_title"
class="mx_Heading_h3 mx_Dialog_title"
id="mx_BaseDialog_title"
>
Developer Tools

View File

@@ -12,7 +12,7 @@ exports[`<ExportDialog /> renders export dialog 1`] = `
class="mx_Dialog_header mx_Dialog_headerWithCancel"
>
<h2
class="mx_Heading_h4 mx_Dialog_title"
class="mx_Heading_h3 mx_Dialog_title"
id="mx_BaseDialog_title"
>
Export Chat

View File

@@ -18,7 +18,7 @@ exports[`FeedbackDialog should respect feedback config 1`] = `
class="mx_Dialog_header"
>
<h2
class="mx_Heading_h4 mx_Dialog_title"
class="mx_Heading_h3 mx_Dialog_title"
id="mx_BaseDialog_title"
>
Feedback

View File

@@ -18,7 +18,7 @@ exports[`ManualDeviceKeyVerificationDialog should display the device 1`] = `
class="mx_Dialog_header mx_Dialog_headerWithCancel"
>
<h2
class="mx_Heading_h4 mx_Dialog_title"
class="mx_Heading_h3 mx_Dialog_title"
id="mx_BaseDialog_title"
>
Verify session
@@ -133,7 +133,7 @@ exports[`ManualDeviceKeyVerificationDialog should display the device of another
class="mx_Dialog_header mx_Dialog_headerWithCancel"
>
<h2
class="mx_Heading_h4 mx_Dialog_title"
class="mx_Heading_h3 mx_Dialog_title"
id="mx_BaseDialog_title"
>
Verify session

View File

@@ -17,7 +17,7 @@ exports[`<MessageEditHistory /> should match the snapshot 1`] = `
class="mx_Dialog_header mx_Dialog_headerWithCancel"
>
<h2
class="mx_Heading_h4 mx_Dialog_title"
class="mx_Heading_h3 mx_Dialog_title"
id="mx_BaseDialog_title"
>
Message edits
@@ -133,7 +133,7 @@ exports[`<MessageEditHistory /> should support events with 1`] = `
class="mx_Dialog_header mx_Dialog_headerWithCancel"
>
<h2
class="mx_Heading_h4 mx_Dialog_title"
class="mx_Heading_h3 mx_Dialog_title"
id="mx_BaseDialog_title"
>
Message edits

View File

@@ -18,7 +18,7 @@ exports[`<ServerPickerDialog /> should render dialog 1`] = `
class="mx_Dialog_header mx_Dialog_headerWithCancel"
>
<h2
class="mx_Heading_h4 mx_Dialog_title"
class="mx_Heading_h3 mx_Dialog_title"
id="mx_BaseDialog_title"
>
Sign into your homeserver

View File

@@ -17,7 +17,7 @@ exports[`CreateKeyBackupDialog should display the error message when backup crea
class="mx_Dialog_header"
>
<h2
class="mx_Heading_h4 mx_Dialog_title"
class="mx_Heading_h3 mx_Dialog_title"
id="mx_BaseDialog_title"
>
Starting backup…
@@ -77,7 +77,7 @@ exports[`CreateKeyBackupDialog should display the spinner when creating backup 1
class="mx_Dialog_header"
>
<h2
class="mx_Heading_h4 mx_Dialog_title"
class="mx_Heading_h3 mx_Dialog_title"
id="mx_BaseDialog_title"
>
Starting backup…
@@ -124,7 +124,7 @@ exports[`CreateKeyBackupDialog should display the success dialog when the key ba
class="mx_Dialog_header mx_Dialog_headerWithCancel"
>
<h2
class="mx_Heading_h4 mx_Dialog_title"
class="mx_Heading_h3 mx_Dialog_title"
id="mx_BaseDialog_title"
>
Success!

View File

@@ -17,7 +17,7 @@ exports[`ImportE2eKeysDialog renders 1`] = `
class="mx_Dialog_header mx_Dialog_headerWithCancel"
>
<h2
class="mx_Heading_h4 mx_Dialog_title"
class="mx_Heading_h3 mx_Dialog_title"
id="mx_BaseDialog_title"
>
Import room keys