diff --git a/playwright/snapshots/settings/appearance-user-settings-tab.spec.ts/appearance-tab-linux.png b/playwright/snapshots/settings/appearance-user-settings-tab.spec.ts/appearance-tab-linux.png index b7fea971922..c16b95d1de3 100644 Binary files a/playwright/snapshots/settings/appearance-user-settings-tab.spec.ts/appearance-tab-linux.png and b/playwright/snapshots/settings/appearance-user-settings-tab.spec.ts/appearance-tab-linux.png differ diff --git a/playwright/snapshots/settings/appearance-user-settings-tab.spec.ts/window-12px-linux.png b/playwright/snapshots/settings/appearance-user-settings-tab.spec.ts/window-12px-linux.png index 3247abd7c1b..7d9400b0bd8 100644 Binary files a/playwright/snapshots/settings/appearance-user-settings-tab.spec.ts/window-12px-linux.png and b/playwright/snapshots/settings/appearance-user-settings-tab.spec.ts/window-12px-linux.png differ diff --git a/playwright/snapshots/settings/general-user-settings-tab.spec.ts/general-linux.png b/playwright/snapshots/settings/general-user-settings-tab.spec.ts/general-linux.png index 797c02e8731..73666d61c0e 100644 Binary files a/playwright/snapshots/settings/general-user-settings-tab.spec.ts/general-linux.png and b/playwright/snapshots/settings/general-user-settings-tab.spec.ts/general-linux.png differ diff --git a/playwright/snapshots/settings/general-user-settings-tab.spec.ts/general-smallscreen-linux.png b/playwright/snapshots/settings/general-user-settings-tab.spec.ts/general-smallscreen-linux.png index 103dc698a57..0b5a08979d9 100644 Binary files a/playwright/snapshots/settings/general-user-settings-tab.spec.ts/general-smallscreen-linux.png and b/playwright/snapshots/settings/general-user-settings-tab.spec.ts/general-smallscreen-linux.png differ diff --git a/playwright/snapshots/settings/preferences-user-settings-tab.spec.ts/Preferences-user-settings-tab-should-be-rendered-properly-1-linux.png b/playwright/snapshots/settings/preferences-user-settings-tab.spec.ts/Preferences-user-settings-tab-should-be-rendered-properly-1-linux.png index e5d1ddef4f8..d0bc1288ecd 100644 Binary files a/playwright/snapshots/settings/preferences-user-settings-tab.spec.ts/Preferences-user-settings-tab-should-be-rendered-properly-1-linux.png and b/playwright/snapshots/settings/preferences-user-settings-tab.spec.ts/Preferences-user-settings-tab-should-be-rendered-properly-1-linux.png differ diff --git a/res/css/views/dialogs/_UserSettingsDialog.pcss b/res/css/views/dialogs/_UserSettingsDialog.pcss index 1e27bb4b6aa..6c09e90886b 100644 --- a/res/css/views/dialogs/_UserSettingsDialog.pcss +++ b/res/css/views/dialogs/_UserSettingsDialog.pcss @@ -22,6 +22,15 @@ limitations under the License. justify-content: center; } +.mx_UserSettingsDialog_title { + /* Override default dialog font style */ + font: var(--cpd-font-heading-md-regular) !important; + + .mx_UserSettingsDialog_title_strong { + font: var(--cpd-font-heading-md-semibold); + } +} + /* ICONS */ /* ========================================================== */ diff --git a/src/components/views/dialogs/BaseDialog.tsx b/src/components/views/dialogs/BaseDialog.tsx index 66f6c9e0953..4ed8543ee2b 100644 --- a/src/components/views/dialogs/BaseDialog.tsx +++ b/src/components/views/dialogs/BaseDialog.tsx @@ -128,6 +128,7 @@ export default class BaseDialog extends React.Component { onClick={this.onCancelClick} className="mx_Dialog_cancelButton" aria-label={_t("dialog_close_label")} + title={_t("dialog_close_label")} /> ); } @@ -184,8 +185,8 @@ export default class BaseDialog extends React.Component { )} {this.props.headerButton} - {cancelButton} {this.props.children} + {cancelButton} ); diff --git a/src/components/views/dialogs/UserSettingsDialog.tsx b/src/components/views/dialogs/UserSettingsDialog.tsx index 9aafeca2fd3..1ab39acb5ce 100644 --- a/src/components/views/dialogs/UserSettingsDialog.tsx +++ b/src/components/views/dialogs/UserSettingsDialog.tsx @@ -50,7 +50,7 @@ interface IProps { function titleForTabID(tabId: UserTab): React.ReactNode { const subs = { - strong: (sub: string) => {sub}, + strong: (sub: string) => {sub}, }; switch (tabId) { case UserTab.General: @@ -230,6 +230,7 @@ export default function UserSettingsDialog(props: IProps): JSX.Element { hasCancel={true} onFinished={props.onFinished} title={titleForTabID(activeTabId)} + titleClass="mx_UserSettingsDialog_title" >
with an existing session onAction() room actions leave_r Leave room
-
with an existing session onAction() room actions leave_r
+
`; @@ -390,12 +390,6 @@ exports[` with an existing session onAction() room actions leave_r Leave space
-
with an existing session onAction() room actions leave_r
+
`; diff --git a/test/components/views/dialogs/__snapshots__/AppDownloadDialog-test.tsx.snap b/test/components/views/dialogs/__snapshots__/AppDownloadDialog-test.tsx.snap index 8bf4c582afe..6d4e827c474 100644 --- a/test/components/views/dialogs/__snapshots__/AppDownloadDialog-test.tsx.snap +++ b/test/components/views/dialogs/__snapshots__/AppDownloadDialog-test.tsx.snap @@ -23,12 +23,6 @@ exports[`AppDownloadDialog should allow disabling desktop build 1`] = ` Download Element
-
@@ -139,6 +133,12 @@ exports[`AppDownloadDialog should allow disabling desktop build 1`] = ` Google Play and the Google Play logo are trademarks of Google LLC.

+
-
@@ -295,6 +289,12 @@ exports[`AppDownloadDialog should allow disabling fdroid build 1`] = ` Google Play and the Google Play logo are trademarks of Google LLC.

+
-
@@ -364,6 +358,12 @@ exports[`AppDownloadDialog should allow disabling mobile builds 1`] = ` Google Play and the Google Play logo are trademarks of Google LLC.

+
-
@@ -530,6 +524,12 @@ exports[`AppDownloadDialog should render with desktop, ios, android, fdroid butt Google Play and the Google Play logo are trademarks of Google LLC.

+
should fetch github proxy url for each repo with ol Changelog
-
should fetch github proxy url for each repo with ol
+
-
+
-
@@ -39,6 +33,7 @@ exports[`DevtoolsDialog renders the devtools dialog 1`] = ` > Room ID: !id
+
renders export dialog 1`] = ` Export Chat
-

Select from the options below to export chats from your timeline

@@ -200,6 +194,12 @@ exports[` renders export dialog 1`] = `
+
`; diff --git a/test/components/views/dialogs/__snapshots__/LogoutDialog-test.tsx.snap b/test/components/views/dialogs/__snapshots__/LogoutDialog-test.tsx.snap index 3219b1fa721..65943975111 100644 --- a/test/components/views/dialogs/__snapshots__/LogoutDialog-test.tsx.snap +++ b/test/components/views/dialogs/__snapshots__/LogoutDialog-test.tsx.snap @@ -24,12 +24,6 @@ exports[`LogoutDialog Prompts user to connect backup if there is a backup on the You'll lose access to your encrypted messages
-
+
-
+
-
+
should list spaces which are not par Select spaces
-

Decide which spaces can access this room. If a space is selected, its members can find and join @@ -141,6 +135,12 @@ exports[` should list spaces which are not par

+
should render empty state 1`] = ` Select spaces
-

Decide which spaces can access this room. If a space is selected, its members can find and join @@ -242,6 +236,12 @@ exports[` should render empty state 1`] = `

+
-
+
-
+
should match the snapshot 1`] = ` Message edits
-
should match the snapshot 1`] = `
+
should support events with 1`] = ` Message edits
-
should support events with 1`] = `
+
should render dialog 1`] = ` Sign into your homeserver
-
should render dialog 1`] = ` />
+
-

@@ -158,6 +152,12 @@ exports[`CreateKeyBackupDialog should display the success dialog when the key ba

+
-
+
-
+
renders map correctly 1`] = ` class="mx_ZoomButtons" >
join rule handles error when updating join Failed to update the join rules
-
join rule handles error when updating join OK
+
`; @@ -170,12 +170,6 @@ exports[` join rule warns when trying to make an encr Are you sure you want to make this encrypted room public?
-
join rule warns when trying to make an encr
+
`; diff --git a/test/components/views/spaces/__snapshots__/AddExistingToSpaceDialog-test.tsx.snap b/test/components/views/spaces/__snapshots__/AddExistingToSpaceDialog-test.tsx.snap index 4c243927f06..8a40342a6b5 100644 --- a/test/components/views/spaces/__snapshots__/AddExistingToSpaceDialog-test.tsx.snap +++ b/test/components/views/spaces/__snapshots__/AddExistingToSpaceDialog-test.tsx.snap @@ -56,12 +56,6 @@ exports[` looks as expected 1`] = `
-
@@ -118,6 +112,12 @@ exports[` looks as expected 1`] = `
+