Skip to content

[a11y] Fix EuiCallout eslint rule errors by adding a new prop announceOnMount in conditional rendered instances#235054

Merged
paulinashakirova merged 67 commits intoelastic:mainfrom
paulinashakirova:a11y-euiCallout-autofix-eslint-announceonmount
Oct 30, 2025
Merged

[a11y] Fix EuiCallout eslint rule errors by adding a new prop announceOnMount in conditional rendered instances#235054
paulinashakirova merged 67 commits intoelastic:mainfrom
paulinashakirova:a11y-euiCallout-autofix-eslint-announceonmount

Conversation

@paulinashakirova
Copy link
Copy Markdown
Contributor

@paulinashakirova paulinashakirova commented Sep 15, 2025

Summary

This PR introduces fix for our new eslint rule @elastic/eui/callout-announce-on-mount.

Problem

tldr; When callouts appear dynamically (e.g., after user interactions, form validation errors, or status changes), screen readers may not announce their content to users.
The announceOnMount prop ensures these messages are properly announced to users with assistive technologies.

Please double check your code - to make sure that if EuiCallout appears dynamically after a user interaction, the announceOnMount is NOT set to false. I did my best, but might have missed some because of my lacking context.

Note

If EuiCallOut is inside a condition, announceOnMount must be set explicitly.

rbrtj and others added 2 commits September 15, 2025 10:17
This caused a failure on main, likely due to a PR being merged around
the same time as elastic#229868, which
removes the usage of the translation.
@paulinashakirova paulinashakirova changed the title A11y-euiCallout-autofix-eslint-announceonmount [a11y] Fix EuiCallout eslint rule errors by adding a new prop announceonmount in conditional rendered instances Sep 15, 2025
@paulinashakirova paulinashakirova changed the title [a11y] Fix EuiCallout eslint rule errors by adding a new prop announceonmount in conditional rendered instances [a11y] Fix EuiCallout eslint rule errors by adding a new prop announceOnMount in conditional rendered instances Sep 15, 2025
@paulinashakirova paulinashakirova force-pushed the a11y-euiCallout-autofix-eslint-announceonmount branch from 5ccb9de to 4d41f85 Compare September 15, 2025 16:28
@paulinashakirova paulinashakirova marked this pull request as ready for review October 2, 2025 11:27
@paulinashakirova paulinashakirova requested review from a team as code owners October 2, 2025 11:27
@paulinashakirova
Copy link
Copy Markdown
Contributor Author

Hi, teams!
Could you please help me with codeowner reviews for this PR?
@elastic/kibana-core @elastic/security-service-integrations @elastic/workchat-eng @elastic/stack-monitoring @elastic/workflows-eng @elastic/contextual-security-apps

Copy link
Copy Markdown
Contributor

@tiansivive tiansivive left a comment

Choose a reason for hiding this comment

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

Code LGTM now from EA

Copy link
Copy Markdown
Contributor

@dplumlee dplumlee left a comment

Choose a reason for hiding this comment

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

@paulinashakirova thanks for addressing my comments, rule management changes now look good!

Copy link
Copy Markdown
Member

@tsullivan tsullivan left a comment

Choose a reason for hiding this comment

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

SharedUX LGTM

Copy link
Copy Markdown
Contributor

@maxcold maxcold left a comment

Choose a reason for hiding this comment

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

contextual-security-apps owned files LGTM

@paulinashakirova
Copy link
Copy Markdown
Contributor Author

paulinashakirova commented Oct 27, 2025

Hi!
Could you please review my PR. 😊
@elastic/security-service-integrations
@elastic/stack-monitoring
@elastic/kibana-core
@elastic/workflows-eng
@machadoum

@paulinashakirova paulinashakirova removed the request for review from tomsonpl October 29, 2025 09:22
@machadoum machadoum removed their request for review October 29, 2025 09:32
Copy link
Copy Markdown
Contributor

@gsoldevila gsoldevila left a comment

Choose a reason for hiding this comment

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

Core changes LGTM (code review only)

Copy link
Copy Markdown

@chemamartinez chemamartinez left a comment

Choose a reason for hiding this comment

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

LGTM (SSI team)

Copy link
Copy Markdown
Contributor

@talboren talboren left a comment

Choose a reason for hiding this comment

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

lgtm on workflows related files

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Oct 30, 2025

💚 Build Succeeded

  • Buildkite Build
  • Commit: 4740c84
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-235054-4740c84a7514

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
advancedSettings 36.2KB 36.2KB +19.0B
aiops 527.0KB 527.1KB +38.0B
alerting 88.3KB 88.3KB +19.0B
apm 2.8MB 2.8MB +304.0B
automaticImport 1.3MB 1.3MB +95.0B
canvas 1.0MB 1.0MB +19.0B
cases 1.4MB 1.4MB +190.0B
cloudSecurityPosture 638.0KB 638.2KB +228.0B
contentConnectors 462.6KB 463.0KB +475.0B
controls 489.2KB 489.2KB +38.0B
core 131.0KB 131.0KB +19.0B
dashboard 663.1KB 663.2KB +95.0B
datasetQuality 422.9KB 423.0KB +76.0B
dataViewFieldEditor 100.7KB 100.7KB +76.0B
dataViewManagement 141.0KB 141.1KB +114.0B
dataVisualizer 598.8KB 598.9KB +95.0B
discover 1.2MB 1.2MB +190.0B
embeddableAlertsTable 1000.8KB 1000.8KB +19.0B
enterpriseSearch 947.3KB 947.5KB +190.0B
esql 578.8KB 578.8KB +19.0B
esqlDataGrid 148.8KB 148.8KB +19.0B
eventAnnotationListing 206.5KB 206.6KB +57.0B
filesManagement 103.6KB 103.7KB +57.0B
fileUpload 645.8KB 645.8KB +57.0B
fleet 2.1MB 2.1MB +1.1KB
graph 373.0KB 373.1KB +114.0B
indexLifecycleManagement 147.2KB 147.4KB +209.0B
indexManagement 698.0KB 698.5KB +437.0B
infra 1.1MB 1.1MB +209.0B
ingestPipelines 346.8KB 347.0KB +171.0B
inspector 30.9KB 31.0KB +38.0B
maps 3.1MB 3.1MB +247.0B
ml 5.4MB 5.4MB +1.5KB
monitoring 631.2KB 631.4KB +228.0B
observability 1.7MB 1.7MB +133.0B
observabilityAIAssistant 20.9KB 20.9KB +19.0B
observabilityAIAssistantApp 225.8KB 225.8KB +38.0B
observabilityAiAssistantManagement 102.7KB 102.7KB +38.0B
onechat 388.9KB 388.9KB +19.0B
osquery 1.0MB 1.0MB +92.0B
profiling 358.9KB 359.0KB +95.0B
remoteClusters 84.3KB 84.3KB +19.0B
reporting 125.6KB 125.8KB +190.0B
savedObjectsManagement 79.1KB 79.1KB +57.0B
searchAssistant 107.9KB 108.0KB +38.0B
searchGettingStarted 155.2KB 155.2KB +76.0B
searchHomepage 147.2KB 147.2KB +57.0B
searchIndices 193.6KB 193.7KB +57.0B
searchPlayground 235.3KB 235.3KB +19.0B
security 485.5KB 485.9KB +456.0B
securitySolution 11.0MB 11.0MB +1.5KB
serverlessSearch 177.7KB 177.9KB +152.0B
slo 982.7KB 982.9KB +244.0B
snapshotRestore 251.6KB 251.9KB +266.0B
spaces 214.9KB 215.1KB +190.0B
stackAlerts 67.9KB 68.0KB +114.0B
stackConnectors 725.0KB 725.1KB +95.0B
streamsApp 907.6KB 907.7KB +38.0B
synthetics 1.0MB 1.0MB +380.0B
telemetryManagementSection 30.9KB 31.0KB +76.0B
transform 623.8KB 624.1KB +304.0B
triggersActionsUi 1.5MB 1.5MB +285.0B
uiActionsEnhanced 126.9KB 126.9KB +19.0B
unifiedDocViewer 273.9KB 273.9KB +19.0B
upgradeAssistant 225.8KB 226.2KB +456.0B
uptime 490.2KB 490.4KB +168.0B
visTypeVega 2.0MB 2.0MB +19.0B
visualizations 344.6KB 344.7KB +76.0B
watcher 157.8KB 157.8KB +57.0B
total +12.4KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
cloudLinks 32.8KB 32.8KB +38.0B
elasticAssistant 305.8KB 305.9KB +76.0B
indexLifecycleManagement 26.6KB 26.6KB +38.0B
interactiveSetup 32.5KB 32.6KB +38.0B
runtimeFields 10.5KB 10.5KB +38.0B
share 53.7KB 53.8KB +19.0B
total +247.0B

History

cc @paulinashakirova

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a11y Accessibility issue backport:skip This PR does not require backporting ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.