95430cecbc
* Add notification dots to thread summary icons Adopts new IndicatorIcon from compound to have threads icons with indicator dot (that aren't also buttons). Adds green & red dots on the threads icon in the thread summary to indicate notifications. Changes the notification level dots colours in the threads panel to be green to match. * Update test for new CSS class * Update snapshots with new class name * Another snapshot update for new class name * Replace more uses of old class name in tests * More snapshot updates for new class name * Unsure how this ever worked in chronological mode * More snapshot updates * Fix dot colours * Upgrade to compound-web 3 * Fix computed notification levels * Add test for notificationLevelToIndicator
49 lines
1.2 KiB
Text
49 lines
1.2 KiB
Text
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`SpaceButton metaspace should render notificationState if one is provided 1`] = `
|
|
<DocumentFragment>
|
|
<div
|
|
aria-label="People"
|
|
class="mx_AccessibleButton mx_SpaceButton mx_SpaceButton_active"
|
|
data-testid="create-space-button"
|
|
role="button"
|
|
tabindex="-1"
|
|
>
|
|
<div
|
|
class="mx_SpaceButton_selectionWrapper"
|
|
>
|
|
<div
|
|
class="mx_SpaceButton_avatarWrapper"
|
|
>
|
|
<div
|
|
class="mx_SpaceButton_avatarPlaceholder"
|
|
>
|
|
<div
|
|
class="mx_SpaceButton_icon"
|
|
/>
|
|
</div>
|
|
<div
|
|
class="mx_SpacePanel_badgeContainer"
|
|
>
|
|
<div
|
|
class="mx_AccessibleButton mx_NotificationBadge mx_NotificationBadge_visible mx_NotificationBadge_level_notification mx_NotificationBadge_2char"
|
|
role="button"
|
|
tabindex="-1"
|
|
>
|
|
<span
|
|
class="mx_NotificationBadge_count"
|
|
>
|
|
8
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<span
|
|
class="mx_SpaceButton_name"
|
|
>
|
|
People
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</DocumentFragment>
|
|
`;
|