fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Mapping is not provided between label (Category status) with its respective Check-boxes in multi-select ComboBox.

Open SyedRehmanRazvi opened this issue 7 years ago • 4 comments

User Experience: Users who rely on screen readers are getting affected as screen reader is not announcing label name when focus is on Check-boxes.

Test Environment: OS: Windows 10 Browser: Microsoft Edge (44.19013.1.0) URL: https://fabricweb.z5.web.core.windows.net/oufr/7.52.0/#/examples/ComboBox

Repro Steps: Step 1: Start Narrator Step 2: Open the above URL in Edge browser. Step 3: Navigate to "multi-select ComboBox" and activate it. Step 4: Verify narrator is announcing label (First Heading) with its respective Check-boxes.

Actual: Mapping is not provided between label (First Heading) with its respective Check-boxes . So that narrator is not announcing label(First Heading) when focus is on Check-boxes.

Here narrator is announcing as "Option A checkbox, unchecked, 1 of 10"

Expected: Mapping should be provided between label (First Heading) with its respective Check-boxes. So that narrator will announce label(First Heading) when focus is on Check-boxes.

Here narrator should announce as "First Heading, Option A checkbox, unchecked, 1 of 4"

MAS Reference: MAS3.3.2 https://microsoft.sharepoint.com/:w:/r/teams/msenable/_layouts/15/WopiFrame.aspx?sourcedoc={4b95a70d-258c-474a-820e-5c8b79d5c0bf}

image

SyedRehmanRazvi avatar Nov 21 '19 11:11 SyedRehmanRazvi

Hi @SyedRehmanRazvi, thank you for reporting this. I see that this repros: image

In ComboBox.Basic.Example.tsx, I see that the headings are set the same way as the options with a key and text object so I'm not sure why Narrator is not picking up on it. The only difference is that this object has an itemType of SelectableOptionMenuItemType.Header so maybe Narrator for some reason is ignoring text that that itemType. I'll investigate further and follow up.

aneeshack4 avatar Nov 22 '19 01:11 aneeshack4

i'm curious if there are any examples in the wild of this behavior and how they tackled the markup, and the resulting narrator.

micahgodbolt avatar Nov 26 '19 20:11 micahgodbolt

One approach is to have the group (containing div) that contains the header also have an aria-labelledby that points to that header. Not sure if the menu items are structured that way today or if it would need to be reworked to have that structure (I believe it's the latter)

jspurlin avatar Dec 02 '19 18:12 jspurlin

Spoke with component owner and looks like this is a dupe of #10921.

aneeshack4 avatar Dec 02 '19 21:12 aneeshack4