Skip to content

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

Merged
alexwizp merged 2 commits into
elastic:9.3from
alexwizp:backport/9.3/pr-267698
May 8, 2026
Merged

[9.3] Fix @elastic/eui/icon-accessibility-rules lint violations across @elastic/ml-ui files (#267698)#268430
alexwizp merged 2 commits into
elastic:9.3from
alexwizp:backport/9.3/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.3:

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/packages/private/ml/aiops_components/src/progress_controls/progress_controls.tsx
#	x-pack/platform/packages/shared/file-upload/src/file_upload_component/new/file_status/file_clash.tsx
#	x-pack/platform/packages/shared/file-upload/src/file_upload_component/new/results_links/results_links.tsx
#	x-pack/platform/plugins/private/data_visualizer/public/application/common/components/multi_select_picker/multi_select_picker.tsx
#	x-pack/platform/plugins/private/data_visualizer/public/application/common/components/stats_table/data_visualizer_stats_table.tsx
#	x-pack/platform/plugins/shared/ml/public/application/components/job_message_icon/job_message_icon.tsx
#	x-pack/platform/plugins/shared/ml/public/application/components/job_selector/group_or_job_selector_menu/job_selector_button.tsx
#	x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_creation/components/back_to_list_panel/back_to_list_panel.tsx
#	x-pack/platform/plugins/shared/ml/public/application/data_frame_analytics/pages/analytics_creation/components/view_results_panel/view_results_panel.tsx
#	x-pack/platform/plugins/shared/ml/public/application/explorer/components/severity_legend_control/severity_legend_control.tsx
#	x-pack/platform/plugins/shared/ml/public/application/jobs/jobs_list/components/datafeed_chart_flyout/datafeed_chart_flyout.tsx
#	x-pack/platform/plugins/shared/ml/public/application/jobs/new_job/pages/components/charts/event_rate_chart/overlay_range.tsx
#	x-pack/platform/plugins/shared/ml/public/application/overview/overview_ml_page.tsx
#	x-pack/platform/plugins/shared/ml/public/embeddables/job_creation/common/job_details.tsx
#	x-pack/platform/plugins/shared/ml/public/embeddables/job_creation/lens/lens_vis_layer_selection_flyout/layer/compatible_layer.tsx
#	x-pack/platform/plugins/shared/ml/public/embeddables/job_creation/map/map_vis_layer_selection_flyout/layer/compatible_layer.tsx
@alexwizp alexwizp requested a review from kibanamachine as a code owner May 8, 2026 12:50
@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:50
@kibanamachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Scout Lane #2 - stateful-classic / default / local-stateful-classic - APM integration not installed but setup completed - Admin user
  • [job] [logs] Scout Lane #2 - stateful-classic / default / local-stateful-classic - Collector integration is not installed - collector integration missing
  • [job] [logs] Scout Lane #2 - stateful-classic / default / local-stateful-classic - Collector integration is not installed - Symbolizer integration is not installed
  • [job] [logs] Scout Lane #2 - stateful-classic / default / local-stateful-classic - Profiling is setup and data is loaded - Admin user
  • [job] [logs] Scout Lane #2 - stateful-classic / default / local-stateful-classic - Profiling is setup and data is loaded - Viewer user
  • [job] [logs] Scout Lane #3 - stateful-classic / default / local-stateful-classic - UX URL Query - confirms query params are applied
  • [job] [logs] Scout Lane #3 - stateful-classic / default / local-stateful-classic - UX Visitor Breakdown - displays visitor breakdown charts

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 527.7KB 527.8KB +85.0B
dataVisualizer 601.4KB 601.7KB +257.0B
esql 774.9KB 775.0KB +51.0B
ml 5.6MB 5.6MB +1.1KB
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 17e579c into elastic:9.3 May 8, 2026
24 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