Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lens] Fix query input A11y bug: doesn't react to escape button #140382

Merged
merged 2 commits into from Sep 9, 2022

Conversation

mbondyra
Copy link
Contributor

@mbondyra mbondyra commented Sep 9, 2022

Summary

Fixes #140380 - didn't notice any behaviour breaking.

@mbondyra mbondyra added release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Sep 9, 2022
@mbondyra mbondyra requested a review from a team as a code owner September 9, 2022 11:24
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors @elastic/kibana-vis-editors-external (Team:VisEditors)

@Dosant Dosant self-requested a review September 9, 2022 11:37
@Dosant
Copy link
Contributor

Dosant commented Sep 9, 2022

I think the best would be to fix this so the first ESC closes the suggestions, and the second ESC closes the popover.

Screenshot 2022-09-09 at 13 43 33

With the current fix, both will be closed on the first ESC

I think we can fix this by preventing default only if we are going to switch from isSuggestionsVisible: true to false

@mbondyra
Copy link
Contributor Author

mbondyra commented Sep 9, 2022

That's a very good idea, thanks @Dosant!

Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

👍

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

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
unifiedSearch 233.7KB 233.7KB +3.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@mbondyra mbondyra merged commit b753a1a into elastic:main Sep 9, 2022
@mbondyra mbondyra deleted the lens/fix_kql branch September 9, 2022 14:02
@kibanamachine kibanamachine added v8.5.0 backport:skip This commit does not require backporting labels Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Lens release_note:fix Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Lens] [A11y] no way to escape the kql input
5 participants