From 4dbad26404277c56b4e09029071d22d61554eb65 Mon Sep 17 00:00:00 2001 From: Alexey Antonov Date: Mon, 20 Jan 2025 17:00:55 +0300 Subject: [PATCH] fix: [Security:Rules:Detection Rules:Create Rule] EQL Query text area is missing accessible label in Create new rule panel of type event correlation (#206972) Closes: #205054 **Description** EQL Query text area is missing accessible label in create new rule panel of type event correlation **Preconditions** Security -> Rules->Detection Rules(SIEM) ->create rule is open **Steps to reproduce** 1. Click on Event correlation type for rule type 2. Run axe-core on the page 3. Notice the critical a11y violation error for EQL query text area **Changes made** 1. Added `aria-label` attribute for mentioned places **Screen** image --- .../rule_creation/components/eql_query_edit/eql_query_bar.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/eql_query_edit/eql_query_bar.tsx b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/eql_query_edit/eql_query_bar.tsx index 6111d2e1a2d3d..0f12dcee977a1 100644 --- a/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/eql_query_edit/eql_query_bar.tsx +++ b/x-pack/solutions/security/plugins/security_solution/public/detection_engine/rule_creation/components/eql_query_edit/eql_query_bar.tsx @@ -190,6 +190,7 @@ export const EqlQueryBar: FC = ({ isInvalid={!isValid && !isValidating} value={fieldValue.query.query as string} onChange={handleChange} + aria-label={field.label} />