Commit ae41e86
committed
Fix violations of the
Closes: #204767
Closes: #221091
**Summary**
This PR fixes accessibility violations related to EuiTooltip usage
across the codebase.
**Details**
1. Ensures that all `EuiTooltip` components are anchored to elements
that can receive keyboard focus.
2. Added `tabIndex={0}` to non-interactive elements (e.g., `span`,
`EuiText`) used as tooltip anchors so they are keyboard-focusable.
**Why**
Tooltips anchored to non-focusable elements were not accessible to
keyboard users. These changes improve compliance with accessibility
guidelines and ensure a better experience for all users.
**More context**
Fix violations of the `@elastic/eui/tooltip-focusable-anchor` ESLint.
See elastic/eui#9051 for more details
---------
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 7088e5c)
# Conflicts:
# src/platform/packages/private/kbn-index-editor/src/components/file_clashes.tsx
# src/platform/packages/private/kbn-index-editor/src/components/flyout_content.tsx
# src/platform/packages/shared/kbn-apm-ui-shared/src/components/timestamp/index.tsx
# src/platform/packages/shared/kbn-unified-field-list/src/components/field_stats/field_top_values_bucket.tsx
# src/platform/plugins/shared/data/public/search/session/sessions_mgmt/components/table/columns/get_columns.tsx
# src/platform/plugins/shared/workflows_management/public/components/workflows_empty_state/workflows_empty_state.tsx
# x-pack/platform/plugins/shared/index_management/public/application/components/mappings_editor/components/document_fields/fields/fields_list_item.tsx
# x-pack/platform/plugins/shared/ingest_pipelines/public/application/sections/pipelines_list/flyout_content/details_panel.tsx
# x-pack/platform/plugins/shared/ingest_pipelines/public/application/sections/pipelines_list/table.tsx
# x-pack/platform/plugins/shared/streams_app/public/components/data_management/schema_editor/field_status.tsx
# x-pack/platform/plugins/shared/streams_app/public/components/data_management/stream_detail_enrichment/processors/processor_metrics.tsx
# x-pack/platform/plugins/shared/streams_app/public/components/data_management/stream_detail_management/classic.tsx
# x-pack/platform/plugins/shared/streams_app/public/components/data_management/stream_detail_management/wired.tsx
# x-pack/platform/plugins/shared/streams_app/public/components/data_management/stream_detail_routing/idle_routing_stream_entry.tsx
# x-pack/solutions/observability/plugins/apm/public/components/app/transaction_details/waterfall_with_summary/waterfall_container/waterfall/badge/sync_badge.tsx
# x-pack/solutions/observability/plugins/apm/public/components/shared/trace_waterfall/bar_details.tsx
# x-pack/solutions/observability/plugins/observability/common/components/elapsed_timestamp_tooltip.tsx
# x-pack/solutions/security/packages/kbn-cloud-security-posture/public/src/components/fleet_extensions/common.tsx
# x-pack/solutions/security/plugins/security_solution/public/management/components/console_argument_selectors/custom_scripts_selector/custom_script_selector.tsx
# x-pack/solutions/security/plugins/security_solution/public/management/components/console_argument_selectors/pending_actions_selector/pending_actions_selector.tsx
# x-pack/solutions/security/plugins/security_solution/public/reports/components/ai_value/compare_percentage_badge.tsx@elastic/eui/tooltip-focusable-anchor ESLint rule (#236721)1 parent 2bd22d4 commit ae41e86
217 files changed
Lines changed: 487 additions & 272 deletions
File tree
- examples/esql_ast_inspector/public/components/esql_inspector/components/preview/components/preview_ui/components/from_command
- src/platform
- plugins
- private
- presentation_panel/public/panel_component/panel_header
- vis_default_editor/public/components/controls
- x-pack
- examples/testing_embedded_lens/public
- platform
- packages
- private/ml/aiops_components/src/document_count_chart
- plugins
- private
- canvas/public/components
- arg_form
- page_config
- var_config
- workpad_config
- data_visualizer/public/application
- data_drift
- file_data_visualizer/components/file_contents
- graph/public/components/control_panel
- index_lifecycle_management/public/application/sections/policy_list/components
- monitoring/public
- alerts/lib
- __snapshots__
- components
- cluster/overview
- elasticsearch
- nodes
- shard_allocation/components
- kibana
- cluster_status
- detail_status
- instances
- painless_lab/public/application/components/output_pane
- snapshot_restore/public/application/sections/home/restore_list/restore_table
- transform/public/app/sections/transform_management/components
- action_clone
- action_create_alert
- action_delete
- action_discover
- action_edit
- action_reset
- action_schedule_now
- action_start
- action_stop
- transform_list
- upgrade_assistant/public/application/components/kibana_deprecations
- watcher/public/application/sections
- watch_list_page
- watch_status_page
- components
- solutions
- observability/plugins
- apm/public/components
- app
- dependencies_inventory
- diagnostics
- error_group_details/error_sampler
- settings/agent_explorer/agent_latest_version
- storage_explorer
- transaction_details/waterfall_with_summary
- waterfall_container/waterfall
- badge
- span_flyout
- routing/templates/apm_service_template
- infra/public
- components
- asset_details
- components
- tabs/overview/alerts
- lens
- pages/logs/stream
- observability_ai_assistant_app/public/components/changes
- observability_onboarding/public/application/quickstart_flows/auto_detect
- observability/public
- components/alerts_table/common
- pages/alert_details/components
- profiling/public
- components
- views/storage_explorer/host_breakdown
- slo/public
- components/slo/slo_badges
- pages
- slo_details/hooks
- slos/components/compact_view
- synthetics/public/apps/synthetics/components
- common/components
- monitor_details
- monitors_page/overview/overview
- compact_view/components
- settings
- uptime/public/legacy_uptime/components
- common/charts
- monitor/status_details/__snapshots__
- overview/monitor_list/columns
- ux/public/components/app/rum_dashboard
- client_metrics
- impactful_metrics
- search/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines
- security
- packages
- ecs-data-quality-dashboard/impl/data_quality_panel
- data_quality_details/indices_details/pattern
- index_result_badge
- pattern_summary/pattern_label/ilm_phase_counts
- summary_table/utils
- data_quality_summary/ilm_phase_filter
- stat
- kbn-securitysolution-autocomplete/src/es_field_selector
- plugins
- cloud_security_posture/public
- components
- pages
- configurations/latest_findings
- vulnerabilities
- security_solution/public
- asset_inventory/components
- grouping/utils
- attack_discovery/pages/results/attack_discovery_panel/panel_header/primary_interactions/badges/workflow_badge
- common/components
- charts
- health_truncate_text
- tables
- text_field_value
- __snapshots__
- detection_engine
- rule_creation_ui/components/description_step
- rule_creation/components
- alert_suppression_edit/components
- ml_job_select
- rule_details_ui/pages/rule_details/rule_actions_overflow
- rule_gaps/components/rules_with_gaps_overview_panel
- rule_management_ui
- components/rules_table
- upgrade_prebuilt_rules_table
- pages/coverage_overview
- rule_management/components/rule_details
- rule_customizations_diff
- three_way_diff/badges
- detections/components/alert_summary/table
- flyout/document_details/right/components
- management
- components
- endpoint_responder/components/header_info
- endpoint_response_actions_list/components
- policy_response
- pages/endpoint_hosts/view
- overview/components/detection_response/soc_trends
- siem_migrations/rules/components
- migration_status_panels
- rules_table_columns/header
- timelines/components/timeline
- body/renderers
- kpi
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments