Need clarity on Success Criterion 1.4.13: Content on Hover or Focus: Dialog Tooltips #2759
Replies: 5 comments 5 replies
-
Using ESC to close the dialog and not the tooltip is not a violation of SC 1.4.13, as the SC doesn't dictate how the tooltip can be closed, just that it must be closable without moving focus away. ESC is just an example, any other key would be ok too. |
Beta Was this translation helpful? Give feedback.
-
@AccessibilityEnthusiastic –1.4.13 does not require that the tooltip be dismissible by keyboard. That is a fine option for the author to support. The default ESC key behavior does not satisfy the Dissemble exception. Emphasis added below:
With your example, since pressing the Escape key dismisses more than the additional content, no, that does not satisfy 1.4.13. But you cannot fail this UI behavior against this SC only just because of that. On Windows, Ctrl-F4 closes the current window — but that can not be used to meet 1.4.13! You have not described the page in detail, but my guess is that one of the other exceptions are applicable. |
Beta Was this translation helpful? Give feedback.
-
I would call this a 2.1.1 error. The tooltip closes on escape key (https://react-spectrum.adobe.com/react-spectrum/Tooltip.html) and the issue is that the esc event is bubbling up to the parent dialog instead of being stopped at the tooltip. The result is an issue that impacts full keyboard access. |
Beta Was this translation helpful? Give feedback.
-
Do we know for sure that the EDIT: ah, I see that example screenshot was from an Adobe property, so assuming they do use react-spectrum, then I'll go with Andrew's assessment there |
Beta Was this translation helpful? Give feedback.
-
I cannot discern the hover behavior from the screenshot.
Which is the button? The question mark? I assume the tooltip in question is the white text on dark grey background. Was this pop-up caused by on keyboard focus or mouse over? It looks non-modal to me, so if you can work the input via keyboard and tab to the next field that does not fail 1.4.13. If a mouse pointer hover pop-up, then try to move the mouse into the pop-up text. If it stays up, that is a pass. Glad to have @awkawk in the thread! He will know the product behavior, and if there is a miss against one of the SC. Edit to mention that the react-spectrum tooltips from the page Andrew provided all pass 1.4.13. On that page, the |
Beta Was this translation helpful? Give feedback.
-
Hi WCAG Community,
I need your opinion on one of the scenarios.
The tooltip appears on Dialog/Modal for the button.
When I press the Esc key, the entire Dialog getting closed, instead of closing the tooltip content of the button. Can we consider it as a failure under this checkpoint Success Criterion 1.4.13
As per WCAG:
Two methods may be used to satisfy this condition and prevent such interference:
Position the additional content so that it does not obscure any other content including the trigger, with the exception of white space and purely decorative content, such as a background graphic which provides no information.
Provide a mechanism to easily dismiss the additional content, such as by pressing Escape.
https://www.w3.org/WAI/WCAG22/Understanding/content-on-hover-or-focus.html#dfn-mechanism
So Esc key is working but it is closing the entire modal rather than only the tooltip of the control.
It is a failure here?
Beta Was this translation helpful? Give feedback.
All reactions