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**

<img width="897" alt="image"
src="https://github.com/user-attachments/assets/7bcf592b-03d7-407a-aa94-3506d535c161"
/>
This commit is contained in:
Alexey Antonov 2025-01-20 17:00:55 +03:00 committed by GitHub
parent 453ebf1301
commit 4dbad26404
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -190,6 +190,7 @@ export const EqlQueryBar: FC<EqlQueryBarProps> = ({
isInvalid={!isValid && !isValidating}
value={fieldValue.query.query as string}
onChange={handleChange}
aria-label={field.label}
/>
<EqlQueryBarFooter
errors={errorMessages}