Skip to content

password visibility toggle example in form field component is not accessible #15023

Closed
@mfairchild365

Description

@mfairchild365

What is the expected behavior?

  1. It must be possible to operate the password visibility toggle button in the form field example by only using a keyboard
  2. Roles, states, and properties must be present so that users of screen reader software are aware that the of the toggle functionality

What is the current behavior?

  1. It is not possible to operate the password visibility toggle button in the form field example by only using a keyboard
  2. Roles, states, and properties are not present so that users of screen reader software are aware that the of the toggle functionality

What are the steps to reproduce?

  1. Using either of the following screen readers
    • NVDA 2018.4.1 + Firefox 64
    • VoiceOver for IOS (12.1.3) + Safari
  2. Open the form field example
  3. Navigate to the passord visibility toggle button in the "Form field with prefix & suffix" example
    • In NVDA you can press the tab key until you reach it
    • In VoiceOver for iOS you can swipe right until you reach it
  4. With NVDA observe that the tab key does not focus the button
  5. With VoiceOver for iOS observe that the button is skipped
  6. Observe that it is not possible to activate the button by pressing space or enter keys
  7. Observe that the name, role, and state of the toggle button is not announced by the screen reader.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Is there anything else we should know?

Note that this example is also included in the form field overview page.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AccessibilityThis issue is related to accessibility (a11y)P4A relatively minor issue that is not relevant to core functionsdocsThis issue is related to documentationhelp wantedThe team would appreciate a PR from the community to address this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions