Repository navigation
Description
Bug, feature request, or proposal:
Bug:
Using JAWS with browsers Firefox, Chrome, and IE11, reveals focus issues most likely due to disassociated "label" and "input" elements. Note, the "input" element has a blank "aria-describedby= " attribute.
What is the expected behavior?
Text labels must be associated with the Form element, and default text should be spoken.
What is the current behavior?
Currently, some Edit Input fields have no text labels shown on the braille display, and there is no error detection.
What are the steps to reproduce?
See below.
What is the use-case or motivation for changing an existing behavior?
To allow for WCAG standards.
Which versions of Angular, Material, OS, browsers are affected?
Latest.
Is there anything else we should know?
The screen reader user experience is as follows:
-
Press Tab key into the component.
JAWS focus moves past the "Company" disabled Edit filed and to the first focusable element.
JAWS says "First name edit" and braille display shows "First name ed".
User can type multiple words in this Edit field without getting an error message. -
Press Tab key to the next element.
JAWS says "Long Last Name That Will Be Truncated edit", and the braille display shows "Long Last Name That Will Be Truncated ed".
The user can type multiple words in this field.
Note, when using Firefox, pressing Tab key forward will move focus to this field once, but pressing Shift+Tab key back through the input elements will display this Edit field twice if the Edit field is blank. -
Press Tab key again.
JAWS says "Address edit" (does not announce the input text), but the braille display only shows the input text and not the text label "1600 Amphitheatre Pkwy".
JAWS does announce "contains text" if the input field has text.
If the input Edit field is blank, then the braille display is blank (no text label appears).
Note, when using IE11, the default Edit filed text "1600 Amphitheatre Pkwy" does not appear on the braille display (it is blank until the user types something), thus the user never sees the default text. -
Press Tab key again.
JAWS says "Address 2 edit", and the braille display is blank (no Edit field text "Address 2" label appears). -
Press Tab key again.
JAWS says "City edit", and the braille display shows "City ed".
As expected. -
Press Tab key again.
JAWS says "State edit", and the braille display shows "State ed".
As expected. -
Press Tab key again.
JAWS says "Postal Code edit 94043 5 / 5", and the braille display shows "Postal Code ed 94043 5 / 5".
If the user deletes the default Edit field text, presses Tab key away and then Shift+Tab key back, JAWS says "Postal Code edit 0 / 5", which is also shown on the braille display.
If the user types characters into the Edit field "abc", then JAWS will say and display "Postal Code edit abc 3 / 5" (no error message announced).
Note, the number of characters in the Edit filed does not get updated unless the user moves focus away from the Edit field and then back again (it may not be clear to the user as to the purpose of these numbers).
Note, when using IE11 and unlike the Address field, the default text "94043" is announced and displayed by JAWS.
Activity
mmalerba commentedon Mar 21, 2017
This issue covers a number of things:
Since 1-4 have some resolution or another issue tracking them, I will re-purpose this issue for tracking 5
[-]A11y keyboard focus control in the Input Component[/-][+]A11y keyboard focus control in the Input example[/+]DaveBest99 commentedon Mar 22, 2017
mmalerba commentedon Mar 22, 2017
The code for md-input-container actually automatically adds a label based on the placeholder. For example it transforms
into something like this
I tried some various ways of labeling the textarea (see below) but it didn't make a difference in how JAWS read it. I think JAWS assumes textarea content will be too long and doesn't bother to read it all when you tab to the element.
DaveBest99 commentedon Mar 22, 2017
mmalerba commentedon Mar 22, 2017
I tried adding
role="textbox" aria-multiline="true"as well (though I don't think they should be necessary, the screen reader should know that it's the default role for this element). Didn't have any effectangular-automatic-lock-bot commentedon Sep 5, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.