-
Notifications
You must be signed in to change notification settings - Fork 92
Description
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
- Use the
WoltModalSheetwith the drag handle:
WoltModalSheet(
…
showDragHandle: true,
)- 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:
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.