Skip to content

Commit 3b59117

Browse files
author
Nika Kolesnikova
committed
fix: return Tooltip component to the UrgencyStatusIcon
1 parent 9726593 commit 3b59117

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/components/ListItem.jsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,18 @@ export function ListItem({ item, listPath, itemUrgencyStatus }) {
129129
) : (
130130
<>
131131
{UrgencyStatusIcon && (
132-
<UrgencyStatusIcon
133-
sx={largeWhiteFontStyle}
134-
fontSize="large"
135-
aria-label={itemUrgencyStatus}
132+
<Tooltip
136133
title={<p style={tooltipStyle}>{itemUrgencyStatus}</p>}
137-
/>
134+
placement="left"
135+
arrow
136+
>
137+
<UrgencyStatusIcon
138+
sx={largeWhiteFontStyle}
139+
fontSize="large"
140+
aria-label={itemUrgencyStatus}
141+
title={<p style={tooltipStyle}>{itemUrgencyStatus}</p>}
142+
/>
143+
</Tooltip>
138144
)}
139145

140146
<ListItemButton role={undefined} onClick={handleChange} dense>

0 commit comments

Comments
 (0)