Skip to content

[Cases][a11y] Remove autoFocus to preserve proper focus when modal closed#239366

Merged
janmonschke merged 3 commits intoelastic:mainfrom
janmonschke:cases/cases-settings-accessibility
Oct 17, 2025
Merged

[Cases][a11y] Remove autoFocus to preserve proper focus when modal closed#239366
janmonschke merged 3 commits intoelastic:mainfrom
janmonschke:cases/cases-settings-accessibility

Conversation

@janmonschke
Copy link
Contributor

@janmonschke janmonschke commented Oct 16, 2025

Summary

Fixes #205689

The autoFocus prop prevented the correct focus handling of the closed EUI flyout. Just removing autoFocus was not enough, it has to be set to false.

Screen.Recording.2025-10-16.at.16.25.46.mov
@janmonschke janmonschke self-assigned this Oct 16, 2025
@janmonschke janmonschke requested a review from a team as a code owner October 16, 2025 14:27
@janmonschke janmonschke added release_note:fix backport:version Backport to applied version labels Team:Cases Security Solution Cases team v9.2.0 labels Oct 16, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-cases (Team:Cases)

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

History

cc @janmonschke

@janmonschke janmonschke changed the title [Cases] Remove autoFocus to preserve proper focus when modal closed Oct 17, 2025
@janmonschke janmonschke merged commit ec7ca51 into elastic:main Oct 17, 2025
12 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 9.2

https://github.com/elastic/kibana/actions/runs/18588991762

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 17, 2025
…closed (elastic#239366)

## Summary

Fixes elastic#205689

The `autoFocus` prop prevented the correct focus handling of the closed
EUI flyout. Just removing `autoFocus` was not enough, it has to be set
to `false`.

https://github.com/user-attachments/assets/1cbb5ea9-3284-4fe0-84e1-4370babae977

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
(cherry picked from commit ec7ca51)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
9.2

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 17, 2025
…modal closed (#239366) (#239518)

# Backport

This will backport the following commits from `main` to `9.2`:
- [[Cases][a11y] Remove `autoFocus` to preserve proper focus when modal
closed (#239366)](#239366)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Jan
Monschke","email":"jan.monschke@elastic.co"},"sourceCommit":{"committedDate":"2025-10-17T09:46:15Z","message":"[Cases][a11y]
Remove `autoFocus` to preserve proper focus when modal closed
(#239366)\n\n## Summary\n\nFixes
https://github.com/elastic/kibana/issues/205689\n\nThe `autoFocus` prop
prevented the correct focus handling of the closed\nEUI flyout. Just
removing `autoFocus` was not enough, it has to be set\nto
`false`.\n\n\nhttps://github.com/user-attachments/assets/1cbb5ea9-3284-4fe0-84e1-4370babae977\n\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\nCo-authored-by: Michael
Olorunnisola
<michael.olorunnisola@elastic.co>","sha":"ec7ca510f78d2988ca2d2e5666223fed50d9db76","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:version","Team:Cases","v9.2.0","v9.3.0"],"title":"[Cases][a11y]
Remove `autoFocus` to preserve proper focus when modal
closed","number":239366,"url":"https://github.com/elastic/kibana/pull/239366","mergeCommit":{"message":"[Cases][a11y]
Remove `autoFocus` to preserve proper focus when modal closed
(#239366)\n\n## Summary\n\nFixes
https://github.com/elastic/kibana/issues/205689\n\nThe `autoFocus` prop
prevented the correct focus handling of the closed\nEUI flyout. Just
removing `autoFocus` was not enough, it has to be set\nto
`false`.\n\n\nhttps://github.com/user-attachments/assets/1cbb5ea9-3284-4fe0-84e1-4370babae977\n\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\nCo-authored-by: Michael
Olorunnisola
<michael.olorunnisola@elastic.co>","sha":"ec7ca510f78d2988ca2d2e5666223fed50d9db76"}},"sourceBranch":"main","suggestedTargetBranches":["9.2"],"targetPullRequestStates":[{"branch":"9.2","label":"v9.2.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/239366","number":239366,"mergeCommit":{"message":"[Cases][a11y]
Remove `autoFocus` to preserve proper focus when modal closed
(#239366)\n\n## Summary\n\nFixes
https://github.com/elastic/kibana/issues/205689\n\nThe `autoFocus` prop
prevented the correct focus handling of the closed\nEUI flyout. Just
removing `autoFocus` was not enough, it has to be set\nto
`false`.\n\n\nhttps://github.com/user-attachments/assets/1cbb5ea9-3284-4fe0-84e1-4370babae977\n\nCo-authored-by:
Elastic Machine
<elasticmachine@users.noreply.github.com>\nCo-authored-by: Michael
Olorunnisola
<michael.olorunnisola@elastic.co>","sha":"ec7ca510f78d2988ca2d2e5666223fed50d9db76"}}]}]
BACKPORT-->

Co-authored-by: Jan Monschke <jan.monschke@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
nickpeihl pushed a commit to nickpeihl/kibana that referenced this pull request Oct 23, 2025
…closed (elastic#239366)

## Summary

Fixes elastic#205689

The `autoFocus` prop prevented the correct focus handling of the closed
EUI flyout. Just removing `autoFocus` was not enough, it has to be set
to `false`.


https://github.com/user-attachments/assets/1cbb5ea9-3284-4fe0-84e1-4370babae977

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Oct 27, 2025
…closed (elastic#239366)

## Summary

Fixes elastic#205689

The `autoFocus` prop prevented the correct focus handling of the closed
EUI flyout. Just removing `autoFocus` was not enough, it has to be set
to `false`.


https://github.com/user-attachments/assets/1cbb5ea9-3284-4fe0-84e1-4370babae977

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Michael Olorunnisola <michael.olorunnisola@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:fix Team:Cases Security Solution Cases team v9.2.0 v9.3.0

5 participants