Skip to content

Screen Reader: Unclear Dismiss Action #396

@dominicmh

Description

@dominicmh

Bug report

If a sheet can be dismissed via drag (showDragHandle = true), it provides a corresponding semantic node with the label "Dismiss".
The label should communicate to users that a swipe gesture is expected. Usually, users would expect a tap action. However if performing the tap action, nothing happens.

Expected behavior

Either – and preferably – the label should be "Swipe down to dismiss" (double-finger swipe gesture in screen reader mode). Or the semantic node should react to onTap (double tap in screen reader moder).

Steps to reproduce

  1. Use the WoltModalSheet with the drag handle:
WoltModalSheet(
  …
  showDragHandle: true,
)
  1. Use a screen reader or another tool to inspect the semantic layout. Activate the drag handle's semantic node. Example from Apple's Accessibility Inspector:
Image

Additional context

The relevant Semantics node is created in WoltBottomSheetDragHandle

Optional consideration

It would be nice to have an option to disable the semantic node altogether.
In our case (see screenshot), we have an additional button to dismiss the sheet because not all users are familiar with the drag to dismiss gesture. Having two semantic nodes for the same action, however, is not desirable and the explicit button would better suit in this case.
This is a low-prio feature request and not directly related to the bug report.


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions