Skip to content

[Discover] Fix page up and down navigation in classic table#122742

Merged
kertal merged 5 commits intoelastic:mainfrom
kertal:kertal-pr-2022-01-12-fix-page-up-and-down-navigation
Jan 13, 2022
Merged

[Discover] Fix page up and down navigation in classic table#122742
kertal merged 5 commits intoelastic:mainfrom
kertal:kertal-pr-2022-01-12-fix-page-up-and-down-navigation

Conversation

@kertal
Copy link
Copy Markdown
Member

@kertal kertal commented Jan 12, 2022

Summary

This PR fixes the broken Page UP and Page Down navigation in classic table. Since we had to modify the table's container element to be no longer a focusable element, when using the "Back to top" button when reaching the end of the scrolling table is focusing the "Go to end of the table" button.

Bildschirmfoto 2022-01-12 um 18 21 39

Testing

If you use a MacBook you can use fn + arrow up and fn + arrow down to test this. Before this PR it didn't work, you just got the container element focus (and a black border)
image

Fixes #120180

Checklist

@kertal kertal self-assigned this Jan 12, 2022
@kertal kertal added Feature:Discover Discover Application Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// v7.17.0 v8.0.0 v8.1.0 release_note:fix labels Jan 12, 2022
@kertal kertal marked this pull request as ready for review January 12, 2022 12:54
@kertal kertal requested a review from a team as a code owner January 12, 2022 12:54
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@kertal kertal requested a review from dimaanj January 12, 2022 12:54
@kertal
Copy link
Copy Markdown
Member Author

kertal commented Jan 13, 2022

@elasticmachine merge upstream

Copy link
Copy Markdown
Contributor

@dimaanj dimaanj left a comment

Choose a reason for hiding this comment

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

The code LGTM!

…f github.com:kertal/kibana into kertal-pr-2022-01-12-fix-page-up-and-down-navigation
@kibana-ci
Copy link
Copy Markdown

💚 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
discover 330.7KB 330.7KB -7.0B

History

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

cc @kertal

Copy link
Copy Markdown
Contributor

@majagrubic majagrubic left a comment

Choose a reason for hiding this comment

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

Code review only, haven't tested it

@kertal kertal merged commit 8f37f88 into elastic:main Jan 13, 2022
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jan 17, 2022
@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 122742 or prevent reminders by adding the backport:skip label.

1 similar comment
@kibanamachine
Copy link
Copy Markdown
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 122742 or prevent reminders by adding the backport:skip label.

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

Labels

Feature:Discover Discover Application release_note:fix Team:DataDiscovery Discover, search (data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. t// v7.17.0 v8.0.0 v8.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Page Up/Down keys stopped working in Discover app in recent versions

6 participants