-
Notifications
You must be signed in to change notification settings - Fork 8
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
Table keyboard interaction (draft / partial implementation) #2070
Closed
Closed
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
e823d57
Prototype as of 4/3
msmithNI b974ba5
Merge from main
msmithNI 4dad3d3
Updated keyboard nav code
msmithNI 07cc96b
Lint/prettier
msmithNI f57ac31
Add TODO
msmithNI 6f2126b
Merge from main
msmithNI 893db0c
Merge branch 'main' into users/masmith/table-keyboard-interaction-temp
msmithNI e185f0d
Fix test, less console.log noise when body focused
msmithNI 65ab3dd
Remove no-op call
msmithNI 078fccb
Bugfix for Safari Mac issue, temporary fix for scrolling down via Dowβ¦
msmithNI afaa3cb
Remove tabIndexOverride
msmithNI 247b51a
Undo no-op change
msmithNI 0ba987e
Feature complete keyboard nav
msmithNI 0a92870
Cleanup / fix F2 for single-element cells
msmithNI 7a7ce21
prettier
msmithNI e29b789
Fix action menu Shift-Tab issue
msmithNI 5110178
Prettier
msmithNI 4248deb
Simplify onTabPressed
msmithNI 531eac3
Fix anchor view tabbableChildren implementation, get rid of extra vieβ¦
msmithNI 249c1bf
Cleanup (methods to set focus type, Tab for headers uses similar logiβ¦
msmithNI c6244a1
Merge branch 'main' into users/masmith/table-keyboard-interaction-temp
msmithNI 8f3c5ce
Fix build
msmithNI cacf215
Uptake tabindex changes
msmithNI adfb7a7
Fix column header tabIndex behavior
msmithNI b23ea0d
Fix issues scrolling with a focused cell (+ switch back to observers)
msmithNI 0a26787
Fix build
msmithNI 0d5ff72
Refactoring/cleanup
msmithNI 6dbad6d
Cleanup
msmithNI 44f0936
Remove (flatten) TableFocusState into kbd nav code
msmithNI f6e6a34
Fix some issues with anchor columns / action menus
msmithNI e472265
Add anchor to lastName in Storybook (for testing)
msmithNI cccd1d2
Fix another 'single interactive element' corner case with Tab
msmithNI 9a32fb3
Remove 'single interactive element' special case
msmithNI c80b0f0
Update Enter (when cell focused) to focus content, but not activate it
msmithNI File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a table column type will contain focusable/tabbable elements, our guidance would be:
KeyboardNavigationManager
uses this when handling Tab/Shift-Tab for a given row, and to reflect the correct focus state if one of these elements is focused (TableFocusType.cellContent
).Currently
KeyboardNavigationManager
updates tabindex of these elements directly (except for thetabIndexOverride
cases described previously). For arbitrary cell content, this might not be sufficient, since the element that should be tabindex=0 could be an element descendant in a shadow root or something similar. So we may need to add an additional API/method to handle focusing/unfocusing these children.