Fix NotificationBadge unsent color (#9522)

This commit is contained in:
Germain 2022-10-31 09:45:02 +00:00 committed by GitHub
parent d92fdc1f5b
commit 9b644844da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 1 deletions

View file

@ -51,7 +51,7 @@ export function StatelessNotificationBadge({
const classes = classNames({
'mx_NotificationBadge': true,
'mx_NotificationBadge_visible': isEmptyBadge ? true : hasUnreadCount,
'mx_NotificationBadge_highlighted': color === NotificationColor.Red,
'mx_NotificationBadge_highlighted': color >= NotificationColor.Red,
'mx_NotificationBadge_dot': isEmptyBadge,
'mx_NotificationBadge_2char': symbol?.length > 0 && symbol?.length < 3,
'mx_NotificationBadge_3char': symbol?.length > 2,