Predictability: Escape key to dismiss tooltips #3116
Labels
Feedback
Issue raised by or for collecting input from people outside APG task force
Pattern Page
Related to a page documenting a Pattern
question
Issue asking a question
https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/
Hitting the Escape key to dismiss a tooltip is surely a nice option for getting rid of a tooltip, however, it may add cognitive friction for screen reader users. Screen reader users perceive the tooltip's information via a second channel (e.g. aria-description, or via title). They may not know if a tooltip is currently displayed or not, specifically if the process for displaying a tooltip depends on some system-based delay time. So in a case where a tooltip is not yet visible the use of the Escape key might then trigger unintended actions, such as cancelling a dialog.
An alternative could be that the focused control will always consume the Escape key, but then an intended cancel action might not work, again, cognitive friction.
IMHO the tooltip interaction needs to incorporate predictability, so unexpected actions will not be triggered unintentionally.
Is there a way to tell a screen reader user a tooltip is already displayed so the use of the Escape key can be used with the knowledge of a tooltip is currently displayed on the screen?
The text was updated successfully, but these errors were encountered: