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.
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
Table keyboard interaction (draft / partial implementation) #2070
Changes from 8 commits
e823d57
b974ba5
4dad3d3
07cc96b
f57ac31
6f2126b
893db0c
e185f0d
65ab3dd
078fccb
afaa3cb
247b51a
0ba987e
0a92870
7a7ce21
e29b789
5110178
4248deb
531eac3
249c1bf
c6244a1
8f3c5ce
cacf215
adfb7a7
b23ea0d
0a26787
0d5ff72
6dbad6d
44f0936
f6e6a34
e472265
cccd1d2
9a32fb3
c80b0f0
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I'm not able to get row selection to work. From the HLD:
When I focus an entire row, space either does nothing or scrolls the page. I tried this with both single select and multi select mode on the hierarchical table (again in macOS Firefox).
In multiselect mode I am able to focus the selection checkbox and press Space to toggle it.
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.
Just not yet implemented (updated the PR description), but should be straightforward.
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.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.
This is an implicit coupling between the table cell and the keyboard navigation manager which seems likely to get out of date if we change the keyboard manager implementation (e.g. rename this class). Is there anything we can do to make it more explicit and keep the knowledge of the
focused
class within one file?For example, could the cell fire an event when the action menu is blurred and the keyboard navigation manager listen for that event?