fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

DetailsList: make column resizability keyboard accessible

Open Lovakumar opened this issue 8 years ago • 13 comments

Bug Report

  • Package version(s): (fill this out)
  • Browser and OS versions: OS: Windows 10 RS3 OS version: build 16299.371 Browser: Microsoft edge browser, IE11 browser Edge version: Microsoft Edge 41.16299.371.0 Firefox version: 60.0(32-bit) VSTS Version: 20180510T050959/_cssbundles/Default 20180512T183414

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? (No)

Requested priority: (Normal)

Products/sites affected: (if applicable)

Describe the issue:

Splitter is not accessible by keyboard in DetailsList control.

Actual behavior:

Splitter is not accessible by keyboard in DetailsList control. We can't resize columns using key board.

Expected behavior:

Using keyboard we should be to resize columns

If applicable, please provide a codepen repro:

Lovakumar avatar May 22 '18 13:05 Lovakumar

@aditima, legit issue. At CSUN, I saw a way that you can implement a resize for keyboard by using slider code their. The line effectively becomes the thumb scroll.

betrue-final-final avatar May 22 '18 14:05 betrue-final-final

This also came up in the Wipro accessibility test pass on Keros for Web. We look forward to picking up the fix.

ghost avatar Jun 04 '18 18:06 ghost

@lovakumar @peterdur-msft @betrue-final-final How should we make the splitter keyboard-navigable? I had previously made it so, but it was confusing when using the arrow keys to navigate between column headers that focus would get 'hung up' on the splitter. If we provide a way to navigate to it, the splitter already has handling for keyboard eventing to move it.

ThomasMichon avatar Jun 20 '18 16:06 ThomasMichon

Checked in with teammate and got the following suggestions:

Since this is a grid, it should always support keyboard interaction pattern for a grid, i.e. using arrow keys should allow navigating to the next/previous columns.

There is no specific accessible interaction pattern for this scenario per se but we can try adding keyboard support for moving the splitter using different key combinations:

Option-1: Pressing “enter” key to enable the splitter position movement and use the arrow keys to move its position (Similar to the keyboard interaction in https://www.w3.org/TR/wai-aria-practices-1.1/examples/grid/dataGrids.html#ex2_label )

Option-2: Using (ctrl + arrow) keys to move the splitter once it receives focus

In both the cases, we should let the user know that additional keyboard interaction option is available

ghost avatar Jun 21 '18 22:06 ghost

@peterdur-msft @ThomasMichon mentioned above that it was an odd experience to make the "splitter" area focusable. That is, starting with col1, pressing right arrow would move focus like so:

col1 > splitter > col2 > splitter > col3 > splitter

...which ends up confusing users, especially when some columns can be resized and others can't.

So @betrue-final-final what is the design here?

My preference would be to not change the design of keeping the arrow targets only going between columns... but we could make something like ctrl/command arrowing resize the column by X pixels.

It could be a way to make it resizable via keyboard, though maybe a little undiscoverable.

dzearing avatar Nov 02 '18 19:11 dzearing

Wow, it's been awhile since I looked at this. @dzearing, I get where you're coming from about the extra tab stop. We can do Ctl/Cmd + arrow to resize and try that. That should be ok for the short term.

betrue-final-final avatar Jan 30 '20 20:01 betrue-final-final

I think it is agreed that we should do this work, we just need to lock down what the shortcut will be and get somebody assigned.

cschlechty avatar Mar 04 '20 19:03 cschlechty

This came up in a separate bug -- I deifnitely agree with @dzearing that default arrow nav should not go to resize handles.

One suggestion that came up was to have a toggle button (could be only visible on focus, like a skip link, or part of a context menu) that turns on resize handles and places them in the tab order.

smhigley avatar Mar 05 '20 00:03 smhigley

Does this need to be a mode? When focus is on a header, can we just provide a key combination that expands left and right? That seems like the easiest. Ideally, we can avoid requiring an extra menu.

cschlechty avatar Mar 05 '20 00:03 cschlechty

That would work! I was thinking with a button it might be more discoverable, but I don't actually know which would work better in practice :)

smhigley avatar Mar 06 '20 06:03 smhigley

Determine if there is actually a design for this functionality or if there is a workaround.

paulgildea avatar Jun 03 '20 17:06 paulgildea

What is your eta on fixing this issue?

vanessgo avatar Nov 24 '20 18:11 vanessgo

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

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

msft-fluent-ui-bot avatar Apr 26 '21 12:04 msft-fluent-ui-bot