Skip to content

Share modal: spurious restitution of accessible names unrelated to the dialog window #2334

Description

@cyberbaloo

Observed behavior

When opening the share modal (editor mode), after its accessible name is announced, the screen reader vocalizes information unrelated to the window's content: "Search results", "Suggestions", "Document visibility card", "Link copied OK". These strings come from aria-label attributes or <label> elements present in the code — likely search, suggestion, and notification components that remain present while the share modal is open.

Expected behavior

When a modal is open, only the dialog window's content should be announced. Elements not related to this modal must be hidden from assistive technologies.

Only content relevant to the current task (sharing the document) should be perceivable.

Steps to reproduce

  1. Open a document in editor mode.
  2. Open the share modal.
  3. Navigate with a screen reader when the modal opens.
  4. Observe that the accessible names "Search results", "Suggestions", "Document visibility card", and "Link copied OK" are vocalized.

RGAA criteria

Critère 7.1 : Chaque script est-il, si nécessaire, compatible avec les technologies d'assistance ?

Impact

A blind user navigating with a screen reader opens the share modal. Before even reaching the window's controls, they hear spurious information belonging to other page components. This inconsistent announcement misinforms the user about the modal's actual content and disrupts their navigation.

Priority

P1

Metadata

Metadata

Assignees

Type

Fields

No fields configured for Bug.

Projects

Status
No status
Status
In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions