mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-24 17:38:40 +08:00
7632f36624
* Implement new toast UI * Use PCSS vars and Caption component * Add GenericToast-test * Tweak call toast * Fix code style
73 lines
1.5 KiB
Plaintext
73 lines
1.5 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`GenericToast should render as expected with detail content 1`] = `
|
|
<DocumentFragment>
|
|
<div>
|
|
<div
|
|
class="mx_Toast_description"
|
|
>
|
|
<div>
|
|
Description
|
|
</div>
|
|
</div>
|
|
<div
|
|
aria-live="off"
|
|
class="mx_Toast_buttons"
|
|
>
|
|
<div
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_danger_outline"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
Reject
|
|
</div>
|
|
<div
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
Accept
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|
|
|
|
exports[`GenericToast should render as expected without detail content 1`] = `
|
|
<DocumentFragment>
|
|
<div>
|
|
<div
|
|
class="mx_Toast_description"
|
|
>
|
|
<div>
|
|
Description
|
|
</div>
|
|
<span
|
|
class="mx_Caption mx_Toast_detail"
|
|
>
|
|
Detail
|
|
</span>
|
|
</div>
|
|
<div
|
|
aria-live="off"
|
|
class="mx_Toast_buttons"
|
|
>
|
|
<div
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_danger_outline"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
Reject
|
|
</div>
|
|
<div
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary"
|
|
role="button"
|
|
tabindex="0"
|
|
>
|
|
Accept
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|