Skip to content

[a11y]: ai-chat should not only use placeholder text to convey instructions #879

@Daniel-Schulz-Private

Description

@Daniel-Schulz-Private

Browser

No response

Operating System

No response

Package version

0.18.0

React version

18.3.1

Automated testing tool and ruleset

n/a

Assistive technology

JAWS

Description

The User instruction given with in the Chat Edit Field is presented in "Place holder" which is not a standard practice as per Accessibility standards , also the same is not descriptive.

Recommended fix: Placeholder is not a recommended method of conveying info as per accessibility standards , avoid the same :1. Provide a clear, descriptive, instruction as a visible label or helper text that sets the user’s expectation, e.g. “Type your queries related to IBM Cloud ".

Programmatically associate the instruction with the chat input field using appropriate Technics.

User impact: Impact Screen reader , Keyboard-only and cognitive users: Because the placeholder disappears on typing, they lose access to the instruction once they begin entering text, leading to uncertainty or errors.

Image

WCAG 2.1 Violation

WCAG Mapping: 3.3.2 Labels or Instruction

Reproduction/example

n/a

Steps to reproduce

  1. make sure JAWS is active
  2. open ai-chat
  3. ask a question
  4. see that the instruction "type something..." is given only as placeholder

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: a11y ♿Issues not following accessibility standards

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions