Skip to content

Commit

Permalink
Merge pull request #2646 from aferd/RHCLOUD-28582
Browse files Browse the repository at this point in the history
RHCLOUD-28582 add tooltip for notifications badge
  • Loading branch information
Hyperkid123 authored Oct 5, 2023
2 parents 383387c + 75d40e0 commit 8405014
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/components/Header/Tools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,17 @@ const Tools = () => {
</ToolbarItem>
{isNotificationsEnabled && (
<ToolbarItem className="pf-v5-u-mr-0 pf-v5-u-ml-sm">
<NotificationBadge
className="chr-c-notification-badge"
variant={unreadNotifications ? 'unread' : 'read'}
onClick={() => dispatch(toggleNotificationsDrawer())}
aria-label="Notifications"
isExpanded={isDrawerExpanded}
>
<BellIcon />
</NotificationBadge>
<Tooltip aria="none" aria-live="polite" content={'Notifications'} flipBehavior={['bottom']} className="tooltip-inner-settings-cy">
<NotificationBadge
className="chr-c-notification-badge"
variant={unreadNotifications ? 'unread' : 'read'}
onClick={() => dispatch(toggleNotificationsDrawer())}
aria-label="Notifications"
isExpanded={isDrawerExpanded}
>
<BellIcon />
</NotificationBadge>
</Tooltip>
</ToolbarItem>
)}
{localStorage.getItem('chrome:darkmode') === 'true' && (
Expand Down

0 comments on commit 8405014

Please sign in to comment.