When a Dropdown is provided with a list of four IDropdownOption items and one of those items has the property hidden: true, Narrator reads out "Selection contains four items", but when the dropdown is opened by pressing alt + down key, there are only three elements that read as "one of three", "two of three", etc.
Narrator reads out "Selection contains four items"
Narrator should read "Selection contains three items"
This appears to be a narrator bug - we don't actually mark any item counts. In fact, we have done what is needed obvious because Narrator was able to interpret the 1 of 3 on the 2nd prompt. Narrator should be consistent with itself.
Per our guide: https://github.com/OfficeDev/office-ui-fabric-react/wiki/Accessibility-Troubleshooting#narrator
The best way to file feedback is via the feedback hub built into Windows. Put Accessibility and Narrator in the feedback item for increased visibility.
Please separately follow up by submitting a feedback with the codepen.io example you have encountered.
@kenotron if you look at the generated markup of the dropdown in that codepen, you can see that the selected option within the collapsed listbox has aria-setsize="4", even though there are only 3 visible options. This is the root cause of the bug, not a Narrator issue:
<div data-is-focusable="true" id="Dropdown1" tabindex="0" role="listbox" aria-haspopup="listbox" aria-expanded="false" aria-labelledby="Dropdown1-label Dropdown1-option" class="ms-Dropdown dropdown-53">
<span id="Dropdown1-option" class="ms-Dropdown-title ms-Dropdown-titleIsPlaceHolder title-54" aria-live="polite" aria-atomic="true" aria-invalid="false" role="option" aria-setsize="4">Select an option</span><span class="ms-Dropdown-caretDownWrapper caretDownWrapper-55"><i data-icon-name="ChevronDown" aria-hidden="true" class="ms-Dropdown-caretDown caretDown-71">๎</i></span>
</div>
Thanks for pointing out - I just now saw the attribute. I've added a fix for this!
That's awesome, thanks for fixing it so quickly!
:tada:This issue was addressed in #11238, which has now been successfully released as [email protected].:tada:
Handy links:
Most helpful comment
Thanks for pointing out - I just now saw the attribute. I've added a fix for this!