[ES|QL] Small improvements on the warnings/errors (#172782)

## Summary

This is a PR which:

- Corrects the icon shown in warnings (it was displaying the error icon
which is wrong)
<img width="1253" alt="image"
src="4f388edd-734c-4299-9def-841ac6fccba1">

- Makes the icon also clickable (opens the popover with the list of
warnings/errors)

Co-authored-by: Marco Liberati <dej611@users.noreply.github.com>
This commit is contained in:
Stratoula Kalafateli 2023-12-07 17:35:34 +02:00 committed by GitHub
parent 9e920faacc
commit 71ed936685
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,7 +109,14 @@ export function ErrorsWarningsPopover({
<EuiFlexItem grow={false}>
<EuiFlexGroup gutterSize="xs" responsive={false} alignItems="center">
<EuiFlexItem grow={false}>
<EuiIcon type="error" color={strings.color} size="s" />
<EuiIcon
type={type}
color={strings.color}
size="s"
onClick={() => {
setIsPopoverOpen(!isPopoverOpen);
}}
/>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiPopover