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

Cannot access each cell of detailsList using tab or arrow keys #12701

Closed
liweitian opened this issue Apr 15, 2020 · 6 comments
Closed

Cannot access each cell of detailsList using tab or arrow keys #12701

liweitian opened this issue Apr 15, 2020 · 6 comments
Assignees
Labels

Comments

@liweitian
Copy link

liweitian commented Apr 15, 2020

Describe the feature that you would like added

I found a similar issue #7634, but no follow up actions any more. By using the detailsList, our project implements a grid(table). Just like the sample you provide here https://developer.microsoft.com/en-us/fluentui#/controls/web/detailslist/basic. The problem is: we cannot access each cell of this grid using tab or arrow keys. We can only navigate the table row by row. If you already have a solution on this, can you update it on the sample showed in the document?

What component or utility would this be added to

DetailsList

@joschect
Copy link
Contributor

@liweitian Thanks for the submission! There is a solution to this but it does seem like the basic behavior is not keyboard friendly. @KevinTCoughlin might be able to speak to a reason for this.

Here is a codepen with fairly simple fix that will allow those inner items to be keyboarded to.

@liweitian
Copy link
Author

@joschect I got what you mean in that sample. I was given the link https://www.w3.org/TR/wai-aria-practices/examples/grid/dataGrids.html for accessibility requirement. The behavior of grid in that link is: we can navigate each cell one by one. But in the sample, we first will go to each row then go inside to each cell. I am not sure this is acceptable. I will double check this with the a11y team member. And do we have a simple grid like component? I searched but no luck. If we do not have one, is there any chance to provide such component? Thx!

@joschect
Copy link
Contributor

@liweitian We don't currently have another grid for a behavior like this. We intentionally have each row selected and you can then enter the row.

Another option for you might be to use the basic list found and implement your own grid behavior. It would give you more flexibility in terms of how each item is accessed. Here's an example of list of items giving you some gridlike behavior with only list and a focus zone. This might be your best option.

@rachitpuri95
Copy link

rachitpuri95 commented Feb 2, 2021

The shared codepen doesn't seem to render, could you please share another example for a workaround. Is the workaround simply to add div wrapper with data-is-focusable={true}. I tried that for the column renderer but this didn't work for me.

@khmakoto khmakoto assigned tomi-msft and unassigned joschect May 18, 2021
@taras-strypko
Copy link

Hey, any updates on this?
@joschect Just wondering, if I understood correctly, that workaround from first codepen - is just by wrapping the cell contents into some kind of interactive element like button? As without that button wrapper - it's not working

@msft-fluent-ui-bot msft-fluent-ui-bot added the Resolution: Soft Close Soft closing inactive issues over a certain period label Mar 21, 2022
@msft-fluent-ui-bot
Copy link
Collaborator

Because this issue has not had activity for over 180 days, we're automatically closing it for house-keeping purposes.

Still require assistance? Please, create a new issue with up-to date details.

@microsoft microsoft locked as resolved and limited conversation to collaborators Apr 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants