From ba53b41fd4236b47206c26427ac6690421297cba Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 22 Feb 2024 05:27:19 -0500 Subject: [PATCH] [8.13] fix: [Rules > Rule detail][AXE-CORE]: Interactive controls must not be nested (#177278) (#177556) # Backport This will backport the following commits from `main` to `8.13`: - [fix: [Rules > Rule detail][AXE-CORE]: Interactive controls must not be nested (#177278)](https://github.com/elastic/kibana/pull/177278) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Alexey Antonov --- .../rule_status_failed_callout.tsx | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/x-pack/plugins/security_solution/public/detections/components/rules/rule_execution_status/rule_status_failed_callout.tsx b/x-pack/plugins/security_solution/public/detections/components/rules/rule_execution_status/rule_status_failed_callout.tsx index 0d1777e26c553..ba7f57aba5648 100644 --- a/x-pack/plugins/security_solution/public/detections/components/rules/rule_execution_status/rule_status_failed_callout.tsx +++ b/x-pack/plugins/security_solution/public/detections/components/rules/rule_execution_status/rule_status_failed_callout.tsx @@ -7,7 +7,7 @@ import React, { useCallback } from 'react'; -import { EuiButton, EuiCallOut, EuiCodeBlock } from '@elastic/eui'; +import { EuiCallOut, EuiCodeBlock } from '@elastic/eui'; import { NewChat } from '@kbn/elastic-assistant'; import { FormattedDate } from '../../../../common/components/formatted_date'; @@ -76,19 +76,17 @@ const RuleStatusFailedCallOutComponent: React.FC = {message} {hasAssistantPrivilege && ( - - - {i18n.ASK_ASSISTANT_ERROR_BUTTON} - - + + {i18n.ASK_ASSISTANT_ERROR_BUTTON} + )}