Skip to content

[9.4] Fix @elastic/eui/icon-accessibility-rules lint violations across @elastic/ml-ui files (#267698)#268429

Merged
alexwizp merged 1 commit into
elastic:9.4from
alexwizp:backport/9.4/pr-267698
May 8, 2026
Merged

[9.4] Fix @elastic/eui/icon-accessibility-rules lint violations across @elastic/ml-ui files (#267698)#268429
alexwizp merged 1 commit into
elastic:9.4from
alexwizp:backport/9.4/pr-267698

Conversation

@alexwizp
Copy link
Copy Markdown
Contributor

@alexwizp alexwizp commented May 8, 2026

Backport

This will backport the following commits from main to 9.4:

Questions ?

Please refer to the Backport tool documentation

…elastic/ml-ui` files (elastic#267698)

Resolves 74 ESLint `@elastic/eui/icon-accessibility-rules` violations
across 47 files owned by `@elastic/ml-ui`.

## Changes

- Added `aria-hidden={true}` to decorative `EuiIcon` components (icons
adjacent to text labels)
- Added `aria-label` where icons convey meaning independently (e.g.,
status indicators)

Affected packages/plugins: `@kbn/aiops-components`, `@kbn/file-upload`,
`data_visualizer`, `aiops`, `ml`

**Example:**
```tsx
// Before
<EuiIcon type="checkCircleFill" color={euiTheme.colors.success} />

// After
<EuiIcon aria-hidden={true} type="checkCircleFill" color={euiTheme.colors.success} />
```

## Checklist
- [x] Added label `a11y:agent-pr`
- [x] Fixed all 47 files listed in the issue

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexwizp <20072247+alexwizp@users.noreply.github.com>
Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit f31bd6d)

# Conflicts:
#	x-pack/platform/plugins/shared/ml/public/application/components/job_message_icon/job_message_icon.tsx
@alexwizp alexwizp requested a review from kibanamachine as a code owner May 8, 2026 12:48
@alexwizp alexwizp added the backport This PR is a backport of another PR label May 8, 2026
@alexwizp alexwizp enabled auto-merge (squash) May 8, 2026 12:48
@kibanamachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Scout Lane #12 - stateful-classic / uptime_legacy / local-stateful-classic - DefaultEmailSettings - configures email connector and validates settings

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
aiops 525.6KB 525.7KB +85.0B
dataVisualizer 619.2KB 619.5KB +306.0B
esql 887.2KB 887.2KB +51.0B
ml 5.8MB 5.8MB +1.0KB
total +1.5KB

@bhavyarm bhavyarm self-requested a review May 8, 2026 14:45
Copy link
Copy Markdown
Contributor

@bhavyarm bhavyarm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexwizp alexwizp merged commit 961542e into elastic:9.4 May 8, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants