Use h1 as first heading in dialogs (#12250)
* Use h1 as first heading in dialogs The dialog should be modal and therefore the only content active on the screen, so the title of the dialog should be the top level. Update snapshots & tests appropriately. * Just customise the letter spacing on dialog titles
This commit is contained in:
parent
b5048bf63e
commit
e8ce9cb360
21 changed files with 71 additions and 70 deletions
|
@ -43,7 +43,7 @@ test.describe("User Onboarding (new user)", () => {
|
||||||
test("app download dialog", async ({ page }) => {
|
test("app download dialog", async ({ page }) => {
|
||||||
await page.getByRole("button", { name: "Download apps" }).click();
|
await page.getByRole("button", { name: "Download apps" }).click();
|
||||||
await expect(
|
await expect(
|
||||||
page.getByRole("dialog").getByRole("heading", { level: 2, name: "Download Element" }),
|
page.getByRole("dialog").getByRole("heading", { level: 1, name: "Download Element" }),
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
await expect(page.locator(".mx_Dialog")).toMatchScreenshot();
|
await expect(page.locator(".mx_Dialog")).toMatchScreenshot();
|
||||||
});
|
});
|
||||||
|
|
|
@ -474,6 +474,7 @@ legend {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
letter-spacing: var(--cpd-font-letter-spacing-heading-lg);
|
||||||
|
|
||||||
&.danger {
|
&.danger {
|
||||||
color: $alert;
|
color: $alert;
|
||||||
|
|
|
@ -179,7 +179,7 @@ export default class BaseDialog extends React.Component<IProps> {
|
||||||
{!!(this.props.title || headerImage) && (
|
{!!(this.props.title || headerImage) && (
|
||||||
<Heading
|
<Heading
|
||||||
size="3"
|
size="3"
|
||||||
as="h2"
|
as="h1"
|
||||||
className={classNames("mx_Dialog_title", this.props.titleClass)}
|
className={classNames("mx_Dialog_title", this.props.titleClass)}
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
|
|
|
@ -327,12 +327,12 @@ exports[`<MatrixChat /> with an existing session onAction() room actions leave_r
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Leave room
|
Leave room
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
@ -383,12 +383,12 @@ exports[`<MatrixChat /> with an existing session onAction() room actions leave_r
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Leave space
|
Leave space
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
|
|
@ -16,12 +16,12 @@ exports[`AppDownloadDialog should allow disabling desktop build 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Download Element
|
Download Element
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
@ -164,12 +164,12 @@ exports[`AppDownloadDialog should allow disabling fdroid build 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Download Element
|
Download Element
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
@ -320,12 +320,12 @@ exports[`AppDownloadDialog should allow disabling mobile builds 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Download Element
|
Download Element
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
@ -389,12 +389,12 @@ exports[`AppDownloadDialog should render with desktop, ios, android, fdroid butt
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Download Element
|
Download Element
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
|
|
@ -17,12 +17,12 @@ exports[`<ChangelogDialog /> should fetch github proxy url for each repo with ol
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Changelog
|
Changelog
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
|
|
@ -17,12 +17,12 @@ exports[`ConfirmUserActionDialog renders 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Ban this
|
Ban this
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
|
|
@ -16,12 +16,12 @@ exports[`DevtoolsDialog renders the devtools dialog 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Developer Tools
|
Developer Tools
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
|
|
@ -11,12 +11,12 @@ exports[`<ExportDialog /> renders export dialog 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Export Chat
|
Export Chat
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
|
|
@ -17,12 +17,12 @@ exports[`FeedbackDialog should respect feedback config 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header"
|
class="mx_Dialog_header"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Feedback
|
Feedback
|
||||||
</h2>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_content"
|
class="mx_Dialog_content"
|
||||||
|
|
|
@ -17,12 +17,12 @@ exports[`LogoutDialog Prompts user to connect backup if there is a backup on the
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
You'll lose access to your encrypted messages
|
You'll lose access to your encrypted messages
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
@ -104,12 +104,12 @@ exports[`LogoutDialog Prompts user to set up backup if there is no backup on the
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
You'll lose access to your encrypted messages
|
You'll lose access to your encrypted messages
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
@ -191,12 +191,12 @@ exports[`LogoutDialog shows a regular dialog when crypto is disabled 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Sign out
|
Sign out
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
|
|
@ -16,12 +16,12 @@ exports[`<ManageRestrictedJoinRuleDialog /> should list spaces which are not par
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Select spaces
|
Select spaces
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
@ -166,12 +166,12 @@ exports[`<ManageRestrictedJoinRuleDialog /> should render empty state 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Select spaces
|
Select spaces
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
|
|
@ -17,12 +17,12 @@ exports[`ManualDeviceKeyVerificationDialog should display the device 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Verify session
|
Verify session
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
@ -132,12 +132,12 @@ exports[`ManualDeviceKeyVerificationDialog should display the device of another
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Verify session
|
Verify session
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
|
|
@ -16,12 +16,12 @@ exports[`<MessageEditHistory /> should match the snapshot 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Message edits
|
Message edits
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
@ -132,12 +132,12 @@ exports[`<MessageEditHistory /> should support events with 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Message edits
|
Message edits
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
|
|
@ -17,12 +17,12 @@ exports[`<ServerPickerDialog /> should render dialog 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Sign into your homeserver
|
Sign into your homeserver
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
|
|
@ -16,12 +16,12 @@ exports[`CreateKeyBackupDialog should display an error message when backup creat
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header"
|
class="mx_Dialog_header"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Starting backup…
|
Starting backup…
|
||||||
</h2>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
|
@ -76,12 +76,12 @@ exports[`CreateKeyBackupDialog should display the spinner when creating backup 1
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header"
|
class="mx_Dialog_header"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Starting backup…
|
Starting backup…
|
||||||
</h2>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
|
@ -123,12 +123,12 @@ exports[`CreateKeyBackupDialog should display the success dialog when the key ba
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Success!
|
Success!
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
|
|
@ -16,12 +16,12 @@ exports[`CreateSecretStorageDialog shows 'Generate a Security Key' text if no ke
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header"
|
class="mx_Dialog_header"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title mx_CreateSecretStorageDialog_centeredTitle"
|
class="mx_Heading_h3 mx_Dialog_title mx_CreateSecretStorageDialog_centeredTitle"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Set up Secure Backup
|
Set up Secure Backup
|
||||||
</h2>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<form>
|
<form>
|
||||||
|
@ -184,12 +184,12 @@ exports[`CreateSecretStorageDialog when backup is present but not trusted shows
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header"
|
class="mx_Dialog_header"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Upgrade your encryption
|
Upgrade your encryption
|
||||||
</h2>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<form>
|
<form>
|
||||||
|
@ -251,12 +251,12 @@ exports[`CreateSecretStorageDialog when canUploadKeysWithPasswordOnly calls boot
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header"
|
class="mx_Dialog_header"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Upgrade your encryption
|
Upgrade your encryption
|
||||||
</h2>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<form>
|
<form>
|
||||||
|
@ -337,12 +337,12 @@ exports[`CreateSecretStorageDialog when canUploadKeysWithPasswordOnly prompts fo
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header"
|
class="mx_Dialog_header"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Upgrade your encryption
|
Upgrade your encryption
|
||||||
</h2>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<form>
|
<form>
|
||||||
|
@ -423,12 +423,12 @@ exports[`CreateSecretStorageDialog when canUploadKeysWithPasswordOnly when there
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header"
|
class="mx_Dialog_header"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Upgrade your encryption
|
Upgrade your encryption
|
||||||
</h2>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<form>
|
<form>
|
||||||
|
|
|
@ -16,12 +16,12 @@ exports[`ExportE2eKeysDialog renders 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Export room keys
|
Export room keys
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
|
|
@ -16,12 +16,12 @@ exports[`ImportE2eKeysDialog renders 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Import room keys
|
Import room keys
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
|
|
@ -121,12 +121,12 @@ exports[`<SecurityRoomSettingsTab /> join rule handles error when updating join
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Failed to update the join rules
|
Failed to update the join rules
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
@ -163,12 +163,12 @@ exports[`<SecurityRoomSettingsTab /> join rule warns when trying to make an encr
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
Are you sure you want to make this encrypted room public?
|
Are you sure you want to make this encrypted room public?
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
|
|
@ -17,7 +17,7 @@ exports[`<AddExistingToSpaceDialog /> looks as expected 1`] = `
|
||||||
<div
|
<div
|
||||||
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
class="mx_Dialog_header mx_Dialog_headerWithCancel"
|
||||||
>
|
>
|
||||||
<h2
|
<h1
|
||||||
class="mx_Heading_h3 mx_Dialog_title"
|
class="mx_Heading_h3 mx_Dialog_title"
|
||||||
id="mx_BaseDialog_title"
|
id="mx_BaseDialog_title"
|
||||||
>
|
>
|
||||||
|
@ -55,7 +55,7 @@ exports[`<AddExistingToSpaceDialog /> looks as expected 1`] = `
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</h2>
|
</h1>
|
||||||
<div
|
<div
|
||||||
aria-label="Close dialog"
|
aria-label="Close dialog"
|
||||||
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
class="mx_AccessibleButton mx_Dialog_cancelButton"
|
||||||
|
|
Loading…
Reference in a new issue