Skip to content

Bug - Clipboard copy with expansion variant - screen reader issue #11372

@AyushiMidha

Description

@AyushiMidha

Describe the problem
When using a screen reader with the Clipboard Copy component in the expansion variant, the screen reader first announces the text of the expansion button and then the text of the input field. Since the text content of the expansion button and the input field are similar to some extent, this can give the impression that the screen reader is reading the same content twice. This behavior may confuse users relying on assistive technologies.

How do you reproduce the problem?

  1. Navigate to the Clipboard Copy component component expansion variant (https://www.patternfly.org/components/clipboard-copy#expanded).
  2. Focus on the expansion variant of the Clipboard Copy component.
  3. Use a screen reader (e.g., VoiceOver) to interact with the component.
  4. Observe that the screen reader announces the expansion button text and then the input field text, which are similar.

Expected behavior
The screen reader should differentiate the content being announced for the expansion button and the input field to avoid redundancy or confusion for users.

Screenshots
Image
Image

What is your environment?

  • OS: macOs
  • Browser: Chrome
  • Version: 131.0.6778.205

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions