Skip to content

Commit

Permalink
fix: [Security:Rules:Detection Rules:Create Rule] EQL Query text area…
Browse files Browse the repository at this point in the history
… 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"
/>
  • Loading branch information
alexwizp authored Jan 20, 2025
1 parent 453ebf1 commit 4dbad26
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 4dbad26

Please sign in to comment.