fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

DetailsList: Scan mode, checkboxes have invisible elements

Open eveleens opened this issue 7 years ago • 10 comments

Codepen demonstrating the issue

https://developer.microsoft.com/en-us/fabric#/controls/web/detailslist

Actual behavior:

In Scan mode in DetailsList and hitting "down" arrow to scan elements, the user needs to click the down arrow twice to get past the checkmark - one to read the entire row's information, one to read the checkbox information.

In scan mode navigation, Narrator Focus land on hidden elements and it reads unnecessary information.

Expected behavior:

In scan mode navigation, Narrator Focus should not land on hidden elements while navigating on the page. Focus should land on interactive elements and pass the information for the same control.

Documentation describing expected behavior

MAS 4.2.10 - Tracking of Focus and Selection Attributes

eveleens avatar Jul 25 '19 18:07 eveleens

Hey @eveleens thanks for opening up an issue. For clarification, are you talking about the DetailsList where selectionMode === SelectionMode.multiple?

It sounds like you're not expecting Scan mode to stop on the checkbox/first column header at all. Is that correct? Or is it that information about the checkbox is read out twice? I think I see the checkbox information being read out twice in Scan mode if that's the case.

natalieethell avatar Jul 26 '19 00:07 natalieethell

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your contributions to Fabric React!

msft-github-bot avatar Jul 30 '19 01:07 msft-github-bot

There is a bunch of information being read in scan mode. I'm using single mode, but I can reproduce in multiple mode as well.

If you are in scan mode, and you go into the row: -you get information about the row, -push down -get information on the checkbox -push down -stays on checkbox, now announces if checkbox is checked -push down -moves to next column.

The bug is that we're staying on the checkbox twice.

eveleens avatar Jul 30 '19 23:07 eveleens

I'm seeing exactly what @eveleens reported. Since reference examples appear to work as expected, I'm triaging this as a bug against DetailsList.

JasonGore avatar Aug 02 '19 21:08 JasonGore

Got it, thanks for walking through it @eveleens! I definitely see that, too. My initial thought is that Narrator might be focusing on both of the following divs separately in the checkbox

image

particularly since it only announces whether the checkbox is checked after pressing the arrow key a second time.

natalieethell avatar Aug 02 '19 22:08 natalieethell

I did some exploring with a codepen just using a raw HTML table and seeing the same behavior. This may be an issue with MS Edge or Narrator.

JasonGore avatar Aug 05 '19 16:08 JasonGore

Taking another look at this, I'm starting to think this is expected behavior. I've modified the CodePen I posted previously to show that the narration is consistent.

The first cell in each row has a consistent number of stops for each ARIA role:

  • row
    • gridcell
      • input

This consistency is shown in the CodePen. Even rows that just have text content in the first column will have two stops: one for row and one for gridcell. Rows with inputs have one additional stop for the input itself: row, gridcell, and input. I think the highlight shown is misleading because Narrator highlights the checkbox rather than the row or the cell.

The original description calls these "hidden" elements, but since they have ARIA roles attached to them, they are not really "hidden" elements. Rather, they are elements that provide accessibility context for the associated element, such as what row of the table the user is in. I'm not sure how we could eliminate stops without eliminating these roles, such as the use of gridcell.

JasonGore avatar Aug 16 '19 22:08 JasonGore

Unless @natalieethell chimes in and sees a possibility of gridcell being made presentational somehow, I think this is not an issue.

JasonGore avatar Aug 16 '19 22:08 JasonGore

@JasonGore your logic makes sense to me!

natalieethell avatar Aug 19 '19 17:08 natalieethell

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. Thank you for your contributions to Fabric React!

msft-github-bot avatar Aug 23 '19 18:08 msft-github-bot