Skip to content

A11Y issue - Wrong semanticLabel and semanticHint for disabled MaterialPinField #427

@epentesi

Description

@epentesi

Summary

MaterialPinField exposes an enabled parameter that allows users to disable the widget when enabled: false. However the screen readers continue to read the default hardcoded semanticLabel "6-digit PIN code field" and then "Text field is editing. Insertion point at start" and the hardcoded semanticHint "Enter 6 more digits".

Current behavior

For a visually impaired user it seems that the field can be edited but it is not true.

Expected behavior

The screen reader should be able to detect the non-editability of the PIN code field and to read aloud something like "Text field, dimmed" (as for a CONFIRM button "Confirm, dimmed, button") automatically (and not hardcoded) in the language set in the OS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions