Skip to content

A11y keyboard focus control in the Input example #3585

Closed
@DaveBest99

Description

@DaveBest99

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:

  1. 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.

  2. 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.

  3. 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.

  4. Press Tab key again.
    JAWS says "Address 2 edit", and the braille display is blank (no Edit field text "Address 2" label appears).

  5. Press Tab key again.
    JAWS says "City edit", and the braille display shows "City ed".
    As expected.

  6. Press Tab key again.
    JAWS says "State edit", and the braille display shows "State ed".
    As expected.

  7. 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.

Metadata

Metadata

Assignees

Labels

AccessibilityThis issue is related to accessibility (a11y)P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions