Skip to content

Commit 970625a

Browse files
committed
#RI-2906 - add tooltip for clear btn
1 parent 4502472 commit 970625a

File tree

1 file changed

+13
-9
lines changed
  • redisinsight/ui/src/pages/slowLog/components/Actions

1 file changed

+13
-9
lines changed

redisinsight/ui/src/pages/slowLog/components/Actions/Actions.tsx

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ const Actions = (props: Props) => {
120120
/>
121121
</EuiFlexItem>
122122
<EuiFlexItem>
123-
124123
<EuiPopover
125124
ownFocus
126125
anchorPosition="downRight"
@@ -153,14 +152,19 @@ const Actions = (props: Props) => {
153152
closePopover={closePopoverClear}
154153
panelPaddingSize="m"
155154
button={(
156-
<EuiButtonIcon
157-
iconType="eraser"
158-
className={styles.icon}
159-
color="primary"
160-
aria-label="Clear Slow Log"
161-
onClick={() => showClearPopover()}
162-
data-testid="clear-btn"
163-
/>
155+
<EuiToolTip
156+
position="left"
157+
anchorClassName={styles.icon}
158+
content="Clear Slow Log"
159+
>
160+
<EuiButtonIcon
161+
iconType="eraser"
162+
color="primary"
163+
aria-label="Clear Slow Log"
164+
onClick={() => showClearPopover()}
165+
data-testid="clear-btn"
166+
/>
167+
</EuiToolTip>
164168
)}
165169
>
166170
{ToolTipContent}

0 commit comments

Comments
 (0)