fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Narrator is not reading role of Text Field, ComboBox, TagPicker

Open pandey11 opened this issue 7 years ago • 5 comments

Bug Report

Requested priority: Medium

Describe the issue:

Narrator is not reading type of control of Text Field, Combo Box, Tag Picker

Actual behavior:

It's reading Label, editable or not but not type of control

Expected behavior:

screen reader should narrate the role as Text field

If applicable, please provide a codepen repro:

Not needed

pandey11 avatar Jun 27 '19 07:06 pandey11

@pandey11 can you link to the ARIA spec for the above request? Ideally from https://www.w3.org/TR/wai-aria-1.1/.

It will help us triage and provide a solution.

I noticed while testing Narrator + native inputs that the type of input is not announced, only that the element with focus is an "input".

Example: https://jsfiddle.net/Lz3op9se/

Narrator output:

fiddle.jshell.net, Hello world input, editing, 
Hello world, 

Hence why it will be good to see what the requirements are from the spec.

KevinTCoughlin avatar Jun 27 '19 18:06 KevinTCoughlin

@KevinTCoughlin please refer below links for more details

https://www.w3.org/WAI/PF/GUI/roleTaxonomy-20060508.html https://www.w3.org/TR/UNDERSTANDING-WCAG20/ensure-compat-rsv.html

pandey11 avatar Jun 28 '19 08:06 pandey11

@pandey11, the components you mentioned above receive focus on their native <input /> element and have their roles set as follows:

  • TextField: has type="text" and does not require a role as per W3 ARIA guidance since it is being used as an input for text i.e.

    The textbox role is used to identify an element that allows the input of free-form text. Whenever possible, rather than using this role, use an element with type="text", for single-line input, or a