From aef2e0ab76ace5293177a1ecec57ad0d397aa4c5 Mon Sep 17 00:00:00 2001 From: Walter Rafelsberger Date: Fri, 20 Sep 2024 13:29:22 +0200 Subject: [PATCH] add click event to badge icon --- .../log_rate_analysis/log_rate_analysis_info_popover.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x-pack/plugins/aiops/public/components/log_rate_analysis/log_rate_analysis_info_popover.tsx b/x-pack/plugins/aiops/public/components/log_rate_analysis/log_rate_analysis_info_popover.tsx index 64ec7dd8ff855..febbce519b50a 100644 --- a/x-pack/plugins/aiops/public/components/log_rate_analysis/log_rate_analysis_info_popover.tsx +++ b/x-pack/plugins/aiops/public/components/log_rate_analysis/log_rate_analysis_info_popover.tsx @@ -24,6 +24,9 @@ export const LogRateAnalysisInfoPopoverButton: FC<{ iconType="help" iconSide="right" color="success" + // Defining both iconOnClick and onClick so the mouse cursor changes for cases. + iconOnClick={onClick} + iconOnClickAriaLabel='Click to open "Log rate analysis info" popover' onClick={onClick} onClickAriaLabel='Click to open "Log rate analysis info" popover' data-test-subj="aiopsLogRateAnalysisInfoPopoverButton"