mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-14 22:11:30 +03:00
792a39a39b
* Fix confusing tab indexes in EventTilePreview * Stop using headings inside buttons * Prefer labelledby and describedby over duplicated aria-labels * Improve semantics of tables used in settings * Fix types * Update tests * Fix timestamps
43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`<Notifications /> main notification switches renders only enable notifications switch when notifications are disabled 1`] = `
|
|
<div>
|
|
<div
|
|
class="mx_UserNotifSettings"
|
|
>
|
|
<div
|
|
class="mx_SettingsFlag"
|
|
data-testid="notif-master-switch"
|
|
>
|
|
<span
|
|
class="mx_SettingsFlag_label"
|
|
>
|
|
<div
|
|
id="mx_LabelledToggleSwitch_testid_0"
|
|
>
|
|
Enable notifications for this account
|
|
</div>
|
|
<span
|
|
class="mx_Caption"
|
|
id="mx_LabelledToggleSwitch_testid_0_caption"
|
|
>
|
|
Turn off to disable notifications on all your devices and sessions
|
|
</span>
|
|
</span>
|
|
<div
|
|
aria-checked="false"
|
|
aria-describedby="mx_LabelledToggleSwitch_testid_0_caption"
|
|
aria-disabled="false"
|
|
aria-labelledby="mx_LabelledToggleSwitch_testid_0"
|
|
class="mx_AccessibleButton mx_ToggleSwitch mx_ToggleSwitch_enabled"
|
|
role="switch"
|
|
tabindex="0"
|
|
>
|
|
<div
|
|
class="mx_ToggleSwitch_ball"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
`;
|